diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2017-04-02 12:48:43 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2017-04-02 12:48:43 (GMT) |
commit | 898b6044194d5967099adfadab454cd09a4f360e (patch) | |
tree | 94baad0a49b246c5f21e4659f157de782b21b0cc /src/pre.l | |
parent | 436fc7ed1158d517dd6f6d25aa3e05568f8c3d94 (diff) | |
download | Doxygen-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.l | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 += ' '; |