Commit 057f260b authored by Albert's avatar Albert

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.
parent 7cda115a
...@@ -241,7 +241,10 @@ void replaceComment(int offset); ...@@ -241,7 +241,10 @@ void replaceComment(int offset);
%% %%
<Scan>[^"'!\/\n\\#\\-]* { /* eat anything that is not " / or \n */ <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); copyToOutput(yytext,(int)yyleng);
} }
<Scan>"\"\"\""! { /* start of python long comment */ <Scan>"\"\"\""! { /* start of python long comment */
......
...@@ -3252,7 +3252,10 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) ...@@ -3252,7 +3252,10 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
*pCopyCurlyGString+=yytext; *pCopyCurlyGString+=yytext;
} }
} }
<GCopyCurly>[^"'{}\/\n]+ { <GCopyCurly>[^"'{}\/\n,]+ {
*pCopyCurlyGString+=yytext;
}
<GCopyCurly>[,]+ {
*pCopyCurlyGString+=yytext; *pCopyCurlyGString+=yytext;
} }
<GCopyCurly>"/" { *pCopyCurlyGString+=yytext; } <GCopyCurly>"/" { *pCopyCurlyGString+=yytext; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment