diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-04-22 09:47:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 09:47:06 (GMT) |
commit | 03b86f1ec081b9a4562707bc584b3cd8afefff9b (patch) | |
tree | 9b2334c42e98b68d31bf3d477a42690e86726999 /src/pyscanner.l | |
parent | 5e1c4510d9c732abae86d6e70ffd3c682b46767e (diff) | |
parent | eb72534ade8b9598806fc7e7b08374bd43bb44f3 (diff) | |
download | Doxygen-03b86f1ec081b9a4562707bc584b3cd8afefff9b.zip Doxygen-03b86f1ec081b9a4562707bc584b3cd8afefff9b.tar.gz Doxygen-03b86f1ec081b9a4562707bc584b3cd8afefff9b.tar.bz2 |
Merge pull request #676 from albert-github/feature/bug_788940
Bug 788940 - Bad handling of Python class members when a class declaration line contains a comment
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r-- | src/pyscanner.l | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index 1d964b4..5c9aef5 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -1182,13 +1182,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; @@ -1201,7 +1205,6 @@ STARTDOCSYMS "##" } ""/({NONEMPTY}|{EXPCHAR}) { - // Just pushback an empty class, and // resume parsing the body. newEntry(); |