@@ -898,10 +898,10 @@ STopt [^\n@\\]*
898898 );
899899 yyextra->inInternalDocs = FALSE;
900900 }
901- <Comment>{B}*"\\ ilinebr"{B}* { // preserve spacing around \\ ilinebr
901+ <Comment>{B}*"\\ ilinebr "{B}* { // preserve spacing around \\ ilinebr
902902 addOutput(yyscanner,yytext);
903903 }
904- <Comment>(\n |\\ ilinebr)/({B}*(\n |{IFILELINE}?\\ ilinebr))+ { // at least one blank line (or blank line command)
904+ <Comment>(\n |" \\ ilinebr " )/({B}*(\n |{IFILELINE}?" \\ ilinebr " ))+ { // at least one blank line (or blank line command)
905905 if (yyextra->inContext==OutputBrief)
906906 {
907907 endBrief(yyscanner);
@@ -1103,7 +1103,7 @@ STopt [^\n@\\]*
11031103<Comment>".."[\. ]?/[^ \t\n ] { // internal ellipsis
11041104 addOutput(yyscanner,yytext);
11051105 }
1106- <Comment>(\n |\\ ilinebr)({B}*(\n |\\ ilinebr))+ { // at least one blank line (or blank line command)
1106+ <Comment>(\n |" \\ ilinebr " )({B}*(\n |" \\ ilinebr " ))+ { // at least one blank line (or blank line command)
11071107 if (yyextra->inContext==OutputXRef)
11081108 {
11091109 // see bug 613024, we need to put the newlines after ending the XRef section.
@@ -1112,7 +1112,7 @@ STopt [^\n@\\]*
11121112 for (i=0;i<(yy_size_t)yyleng;)
11131113 {
11141114 if (yytext[i]==' \n' ) addOutput(yyscanner,' \n' ),i++;
1115- else if (strcmp (yytext+i,"\\ ilinebr" )==0) addOutput(yyscanner," \\ ilinebr"),i+=8 ;
1115+ else if (strncmp (yytext+i,"\\ ilinebr ",9 )==0) addOutput(yyscanner,"\\ ilinebr "),i+=9 ;
11161116 else i++;
11171117 }
11181118 }
@@ -1122,7 +1122,7 @@ STopt [^\n@\\]*
11221122 for (i=0;i<(yy_size_t)yyleng;)
11231123 {
11241124 if (yytext[i]==' \n' ) addOutput(yyscanner,' \n' ),i++;
1125- else if (strcmp (yytext+i,"\\ ilinebr" )==0) addOutput(yyscanner," \\ ilinebr"),i+=8 ;
1125+ else if (strncmp (yytext+i,"\\ ilinebr ",9 )==0) addOutput(yyscanner,"\\ ilinebr "),i+=9 ;
11261126 else i++;
11271127 }
11281128 setOutput(yyscanner,OutputDoc);
@@ -4265,7 +4265,7 @@ static void addCite(yyscan_t yyscanner)
42654265}
42664266
42674267// -----------------------------------------------------------------------------
4268- static const reg::Ex nonBrief_re (R"( *[\\@]ifile \"[^\"]*\" [\\@]iline (\d+) [\\@]ilinebr( *\n *))" );
4268+ static const reg::Ex nonBrief_re (R"( *[\\@]ifile \"[^\"]*\" [\\@]iline (\d+) [\\@]ilinebr ([ \n] *))" );
42694269
42704270// strip trailing whitespace (excluding newlines) from string s
42714271static void stripTrailingWhiteSpace (QCString &s)
@@ -4412,7 +4412,7 @@ static inline void setOutput(yyscan_t yyscanner,OutputContext ctx)
44124412 {
44134413 if (match[2 ].str ()[i] == ' \n ' ) cnt++;
44144414 }
4415- if (cnt)
4415+ if (cnt> 0 )
44164416 {
44174417 yyextra->current ->brief = yyextra->current ->brief .left (yyextra->current ->brief .length ()-cnt);
44184418 // set warning line correct
0 commit comments