Skip to content

Commit f5fe9eb

Browse files
committed
Keep utf8 characters together in comments
When having in Fortran: ``` ylegend= "Correction (z) [Ų]" ``` this was shown in the source code as: ``` ylegend= Ų"Correction (z) []" ``` due to the incorrect handling of utf8 characters
1 parent 181b501 commit f5fe9eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fortrancode.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@ LANGUAGE_BIND_SPEC BIND{BS}"("{BS}C{BS}(,{BS}NAME{BS}"="{BS}"\""(.*)"\""{BS})?")
773773
endFontClass(yyscanner);
774774
pop_state(yyscanner);
775775
}
776+
<String>[\x80-\xFF]* |
776777
<String>. {yyextra->str+=yytext;}
777778

778779
<*>\"|\' { /* string starts */

0 commit comments

Comments
 (0)