Skip to content

Commit 97c5414

Browse files
committed
issue #10878 semi-colon after a formula causes error
In the `DocBlock` mode we should not jump into the `<*>";".*"\n"` rule
1 parent c97f00e commit 97c5414

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fortranscanner.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,7 @@ private {
11301130
if (YY_START == FVariable) REJECT; // Just be on the safe side
11311131
if (YY_START == String) REJECT; // ";" ignored in strings
11321132
if (YY_START == StrIgnore) REJECT; // ";" ignored in regular yyextra->comments
1133+
if (YY_START == DocBlock) REJECT; // ";" ignored in documentation blocks
11331134
yyextra->inputStringSemi = " \n"+QCString(yytext+1);
11341135
yyextra->lineNr--;
11351136
pushBuffer(yyscanner,yyextra->inputStringSemi);

0 commit comments

Comments
 (0)