summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-04-02 12:48:43 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2017-04-02 12:48:43 (GMT)
commit898b6044194d5967099adfadab454cd09a4f360e (patch)
tree94baad0a49b246c5f21e4659f157de782b21b0cc /src/pre.l
parent436fc7ed1158d517dd6f6d25aa3e05568f8c3d94 (diff)
downloadDoxygen-898b6044194d5967099adfadab454cd09a4f360e.zip
Doxygen-898b6044194d5967099adfadab454cd09a4f360e.tar.gz
Doxygen-898b6044194d5967099adfadab454cd09a4f360e.tar.bz2
line continuation characters inside comments embedded in a macro definition appeared in the output
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index 18cdbc9..1e01483 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -2658,10 +2658,17 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<SkipCComment,SkipVerbatim>. {
outputChar(*yytext);
}
-<CopyCComment>[^*a-z_A-Z\x80-\xFF\n]+ {
+<CopyCComment>[^*a-z_A-Z\x80-\xFF\n]*[^*a-z_A-Z\x80-\xFF\\\n] {
g_defLitText+=yytext;
g_defText+=escapeAt(yytext);
- }
+ }
+<CopyCComment>\\[\r]?\n {
+ g_defLitText+=yytext;
+ outputChar('\n');
+ g_defText+=" ";
+ g_yyLineNr++;
+ g_yyMLines++;
+ }
<CopyCComment>"*/" {
g_defLitText+=yytext;
g_defText+=yytext;
@@ -2753,7 +2760,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
g_defLitText+=yytext;
g_defText+=yytext;
}
-<DefineText>\\[\r]?\n {
+<DefineText>\\[\r]?\n {
g_defLitText+=yytext;
outputChar('\n');
g_defText += ' ';