Commit 057f260b authored by Albert's avatar Albert
Browse files

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
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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); 
                                     }
<Scan>"\"\"\""!                     { /* start of python long comment */
+4 −1
Original line number Diff line number Diff line
@@ -3252,7 +3252,10 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
					    *pCopyCurlyGString+=yytext; 
					  }
                                        }
<GCopyCurly>[^"'{}\/\n]+		{
<GCopyCurly>[^"'{}\/\n,]+		{
  					  *pCopyCurlyGString+=yytext;
  					}
<GCopyCurly>[,]+		        {
  					  *pCopyCurlyGString+=yytext;
  					}
<GCopyCurly>"/"				{ *pCopyCurlyGString+=yytext; }