summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authorAlbert <albert.tests@gmail.com>2013-11-10 18:20:03 (GMT)
committerAlbert <albert.tests@gmail.com>2013-11-10 18:20:03 (GMT)
commit057f260bfdc3a91a71e83dd5843564225a4bf1aa (patch)
treede71381977421df4df62525a92130884b0dc9b5f /src/commentcnv.l
parent7cda115a6830bf816a094e37c498e5a50ce1b29c (diff)
downloadDoxygen-057f260bfdc3a91a71e83dd5843564225a4bf1aa.zip
Doxygen-057f260bfdc3a91a71e83dd5843564225a4bf1aa.tar.gz
Doxygen-057f260bfdc3a91a71e83dd5843564225a4bf1aa.tar.bz2
Bug 711787 - Long initialization line in C stops doxygen
An extra "breakpoint" in the input string has been created in the form of a , (comma), so for initialization lines the line will be shorter and the , (comma) will be copied later on.
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 948d6e2..45d94dc 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -241,9 +241,12 @@ void replaceComment(int offset);
%%
-<Scan>[^"'!\/\n\\#\\-]* { /* eat anything that is not " / or \n */
- copyToOutput(yytext,(int)yyleng);
- }
+<Scan>[^"'!\/\n\\#\\-\\,]* { /* eat anything that is not " / , or \n */
+ copyToOutput(yytext,(int)yyleng);
+ }
+<Scan>[\\,] { /* eat , so we have a nice separator in long initialization lines */
+ copyToOutput(yytext,(int)yyleng);
+ }
<Scan>"\"\"\""! { /* start of python long comment */
if (g_lang!=SrcLangExt_Python)
{