summaryrefslogtreecommitdiffstats
path: root/src/fortrancode.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-09-02 09:32:42 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-09-02 09:32:42 (GMT)
commit7c429806b072dd8bf777d93035ffda817976adc0 (patch)
tree12688aa303cb0dc55af4d0c934dc01bc45213e96 /src/fortrancode.l
parentc4a766d5fbadc7830b7163459d8e28b912f6a398 (diff)
downloadDoxygen-7c429806b072dd8bf777d93035ffda817976adc0.zip
Doxygen-7c429806b072dd8bf777d93035ffda817976adc0.tar.gz
Doxygen-7c429806b072dd8bf777d93035ffda817976adc0.tar.bz2
issue #7995 Doxygen doesn't handle very simple example in the .md file
Besides "keep utf8 characters together..." as done for the C-type parser in code.l (commit d3d9dd8540ec159de080859c8f34a2581c4147f0) this also has to be done for the Fortran, SQL and VHDL code lexers. The code lexers for python and xml already didn't give errors as they already handled these cases for the example.
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)
{