summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-03-05 12:46:34 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-03-05 12:46:34 (GMT)
commiteb72534ade8b9598806fc7e7b08374bd43bb44f3 (patch)
tree8b42cf856cafd6ada002602f421de04307c60ad3 /src
parentfd2e30508f50c2fe84d3619eaa1575545a25b1d3 (diff)
downloadDoxygen-eb72534ade8b9598806fc7e7b08374bd43bb44f3.zip
Doxygen-eb72534ade8b9598806fc7e7b08374bd43bb44f3.tar.gz
Doxygen-eb72534ade8b9598806fc7e7b08374bd43bb44f3.tar.bz2
Bug 788940 - Bad handling of Python class members when a class declaration line contains a comment
Made comments possible after a class declaration.
Diffstat (limited to 'src')
-rw-r--r--src/pyscanner.l9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index 9c21d41..37fd71d 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -1168,13 +1168,17 @@ STARTDOCSYMS "##"
current->program+=yytext;
BEGIN(TripleComment);
}
-
{TRISINGLEQUOTE} { // start of a comment block
initTriSingleQuoteBlock();
current->program+=yytext;
BEGIN(TripleComment);
}
-
+ {STARTDOCSYMS}[#]* { // start of a special comment
+ initSpecialBlock();
+ BEGIN(SpecialComment);
+ }
+ {POUNDCOMMENT} { // ignore comment with just one #
+ }
^{BB} {
current->program+=yytext;
//current->startLine = yyLineNr;
@@ -1187,7 +1191,6 @@ STARTDOCSYMS "##"
}
""/({NONEMPTY}|{EXPCHAR}) {
-
// Just pushback an empty class, and
// resume parsing the body.
newEntry();