summaryrefslogtreecommitdiffstats
path: root/src/fortrancode.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/fortrancode.l')
-rw-r--r--src/fortrancode.l11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l
index 4951001..5d036e8 100644
--- a/src/fortrancode.l
+++ b/src/fortrancode.l
@@ -1272,6 +1272,17 @@ LANGUAGE_BIND_SPEC BIND{BS}"("{BS}C{BS}(,{BS}NAME{BS}"="{BS}"\""(.*)"\""{BS})?")
}
<*>^{BS}"type"{BS}"=" { g_code->codify(yytext); }
+<*>[\x80-\xFF]* { // keep utf8 characters together...
+ if (g_isFixedForm && yy_my_start > fixedCommentAfter)
+ {
+ startFontClass("comment");
+ codifyLines(yytext);
+ }
+ else
+ {
+ g_code->codify(yytext);
+ }
+ }
<*>. {
if (g_isFixedForm && yy_my_start > fixedCommentAfter)
{