Skip to content

Commit 53614a3

Browse files
committed
Keep utf8 characters together in comments
Analogous to the fortrancode (#10728) also do this in the fortranscanner.
1 parent c55f070 commit 53614a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fortranscanner.l

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ FILEMASK {VFILEMASK}|{HFILEMASK}
445445
}
446446
pop_state(yyscanner);
447447
}
448+
<String>[\x80-\xFF]* |
448449
<String>. { if (yy_top_state(yyscanner) == Initialization ||
449450
yy_top_state(yyscanner) == ArrayInitializer)
450451
{
@@ -485,6 +486,7 @@ FILEMASK {VFILEMASK}|{HFILEMASK}
485486
<StrIgnore>.?/\n { pop_state(yyscanner); // comment ends with endline character
486487
DBG_CTX((stderr,"end comment %d %s\n",yyextra->lineNr,qPrint(yyextra->debugStr)));
487488
} // comment line ends
489+
<StrIgnore>[\x80-\xFF]* |
488490
<StrIgnore>. { yyextra->debugStr+=yytext; }
489491

490492

0 commit comments

Comments
 (0)