32cf374a4b
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/doxygen#6b0c5db74b337b843ad543bf84325b6e1ef5d040
59 lines
2.6 KiB
Diff
59 lines
2.6 KiB
Diff
commit 7c429806b072dd8bf777d93035ffda817976adc0
|
|
Author: albert-github <albert.tests@gmail.com>
|
|
Date: Wed Sep 2 11:32:42 2020 +0200
|
|
|
|
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.
|
|
|
|
diff --git a/src/fortrancode.l b/src/fortrancode.l
|
|
index 4951001c..5d036e8a 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 58a2fce9..22a5e170 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 808e5a29..dcace05d 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);
|
|
}
|