summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-06-26 13:46:00 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-06-26 13:46:00 (GMT)
commitf2de7e59db40daf9efde55bba111e9f4a98ef59f (patch)
tree3dbfd2fc80a6391d8f7c80e2f5352deed85d97c3 /src/pre.l
parentd5916c06fba9667911a19cf658e7c5ab54daf72c (diff)
downloadDoxygen-f2de7e59db40daf9efde55bba111e9f4a98ef59f.zip
Doxygen-f2de7e59db40daf9efde55bba111e9f4a98ef59f.tar.gz
Doxygen-f2de7e59db40daf9efde55bba111e9f4a98ef59f.tar.bz2
issue #7872 A define containing a doxygen start of comment breaks the parser
Not only the preprocessor suffered from the "problem" but also the source code (e.g. with `SOURCE_BROWSER`) gave some strange / missing results.
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index 4ec76ab..8d773ae 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1632,7 +1632,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
}
}
<SkipDoubleQuote>"//"[/]? { yyextra->defText += yytext; yyextra->defLitText+=yytext; }
-<SkipDoubleQuote>"/*" { yyextra->defText += yytext; yyextra->defLitText+=yytext; }
+<SkipDoubleQuote>"/*"[*]? { yyextra->defText += yytext; yyextra->defLitText+=yytext; }
<SkipDoubleQuote>\" {
yyextra->defText += *yytext; yyextra->defLitText+=yytext;
BEGIN(DefineText);