Blame doxygen-1.8.20-does-not-handle-simple-example-in-md-file.patch

Than Ngo 6f6455
commit 7c429806b072dd8bf777d93035ffda817976adc0
Than Ngo 6f6455
Author: albert-github <albert.tests@gmail.com>
Than Ngo 6f6455
Date:   Wed Sep 2 11:32:42 2020 +0200
Than Ngo 6f6455
Than Ngo 6f6455
    issue #7995 Doxygen doesn't handle very simple example in the .md file
Than Ngo 6f6455
    
Than Ngo 6f6455
    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.
Than Ngo 6f6455
Than Ngo 6f6455
diff --git a/src/fortrancode.l b/src/fortrancode.l
Than Ngo 6f6455
index 4951001c..5d036e8a 100644
Than Ngo 6f6455
--- a/src/fortrancode.l
Than Ngo 6f6455
+++ b/src/fortrancode.l
Than Ngo 6f6455
@@ -1272,6 +1272,17 @@ LANGUAGE_BIND_SPEC BIND{BS}"("{BS}C{BS}(,{BS}NAME{BS}"="{BS}"\""(.*)"\""{BS})?")
Than Ngo 6f6455
   					}
Than Ngo 6f6455
 <*>^{BS}"type"{BS}"="                   { g_code->codify(yytext); }
Than Ngo 6f6455
 
Than Ngo 6f6455
+<*>[\x80-\xFF]*                         { // keep utf8 characters together...
Than Ngo 6f6455
+                                          if (g_isFixedForm && yy_my_start > fixedCommentAfter)
Than Ngo 6f6455
+                                          {
Than Ngo 6f6455
+                                            startFontClass("comment");
Than Ngo 6f6455
+                                            codifyLines(yytext);
Than Ngo 6f6455
+                                          }
Than Ngo 6f6455
+                                          else
Than Ngo 6f6455
+                                          {
Than Ngo 6f6455
+                                            g_code->codify(yytext);
Than Ngo 6f6455
+                                          }
Than Ngo 6f6455
+                                        }
Than Ngo 6f6455
 <*>.                                    {
Than Ngo 6f6455
                                           if (g_isFixedForm && yy_my_start > fixedCommentAfter)
Than Ngo 6f6455
                                           {
Than Ngo 6f6455
diff --git a/src/sqlcode.l b/src/sqlcode.l
Than Ngo 6f6455
index 58a2fce9..22a5e170 100644
Than Ngo 6f6455
--- a/src/sqlcode.l
Than Ngo 6f6455
+++ b/src/sqlcode.l
Than Ngo 6f6455
@@ -190,6 +190,9 @@ commentclose    "\*/"
Than Ngo 6f6455
                         codifyLines(yytext,yyscanner);
Than Ngo 6f6455
                     }
Than Ngo 6f6455
 
Than Ngo 6f6455
+[\x80-\xFF]*        { // keep utf8 characters together...
Than Ngo 6f6455
+                        codifyLines(yytext,yyscanner);
Than Ngo 6f6455
+                    }
Than Ngo 6f6455
 .                   {
Than Ngo 6f6455
                         codifyLines(yytext,yyscanner);
Than Ngo 6f6455
                     }
Than Ngo 6f6455
diff --git a/src/vhdlcode.l b/src/vhdlcode.l
Than Ngo 6f6455
index 808e5a29..dcace05d 100644
Than Ngo 6f6455
--- a/src/vhdlcode.l
Than Ngo 6f6455
+++ b/src/vhdlcode.l
Than Ngo 6f6455
@@ -1497,6 +1497,9 @@ XILINX      "INST"|"NET"|"PIN"|"BLKNM"|"BUFG"|"COLLAPSE"|"CPLD"|"COMPGRP"|"CONFI
Than Ngo 6f6455
 			   BEGIN(Bases);
Than Ngo 6f6455
                          }
Than Ngo 6f6455
 
Than Ngo 6f6455
+<*>[\x80-\xFF]*          { // keep utf8 characters together...
Than Ngo 6f6455
+                           g_code->codify(vhdlcodeYYtext);
Than Ngo 6f6455
+                         }
Than Ngo 6f6455
 <*>.                     {
Than Ngo 6f6455
                            g_code->codify(vhdlcodeYYtext);
Than Ngo 6f6455
                          }