summaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/fortrancode.l11
-rw-r--r--src/sqlcode.l3
-rw-r--r--src/vhdlcode.l3
3 files changed, 17 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)
{
diff --git a/src/sqlcode.l b/src/sqlcode.l
index 58a2fce..22a5e17 100644
--- a/src/sqlcode.l
+++ b/src/sqlcode.l
@@ -190,6 +190,9 @@ commentclose "\*/"
codifyLines(yytext,yyscanner);
}
+[\x80-\xFF]* { // keep utf8 characters together...
+ codifyLines(yytext,yyscanner);
+ }
. {
codifyLines(yytext,yyscanner);
}
diff --git a/src/vhdlcode.l b/src/vhdlcode.l
index 808e5a2..dcace05 100644
--- a/src/vhdlcode.l
+++ b/src/vhdlcode.l
@@ -1497,6 +1497,9 @@ XILINX "INST"|"NET"|"PIN"|"BLKNM"|"BUFG"|"COLLAPSE"|"CPLD"|"COMPGRP"|"CONFI
BEGIN(Bases);
}
+<*>[\x80-\xFF]* { // keep utf8 characters together...
+ g_code->codify(vhdlcodeYYtext);
+ }
<*>. {
g_code->codify(vhdlcodeYYtext);
}