Skip to content

Commit

Permalink
issue #7995 Doxygen doesn't handle very simple example in the .md file
Browse files Browse the repository at this point in the history
Besides "keep utf8 characters together..." as done for the C-type parser  in code.l (commit d3d9dd8) 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.
  • Loading branch information
albert-github committed Sep 2, 2020
1 parent c4a766d commit 7c42980
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/fortrancode.l
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
3 changes: 3 additions & 0 deletions src/sqlcode.l
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ commentclose "\*/"
codifyLines(yytext,yyscanner);
}

[\x80-\xFF]* { // keep utf8 characters together...
codifyLines(yytext,yyscanner);
}
. {
codifyLines(yytext,yyscanner);
}
Expand Down
3 changes: 3 additions & 0 deletions src/vhdlcode.l
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7c42980

Please sign in to comment.