summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-12-29 17:13:03 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-12-29 17:13:03 (GMT)
commit175839272b098316a7ec434a85154fbf27669c3e (patch)
tree47261fab144a6bca15b52e14c6544e957fbbd0bb /src/commentcnv.l
parentaf6bf4883affe57d3be48e4b4538eb3c47decfad (diff)
downloadDoxygen-175839272b098316a7ec434a85154fbf27669c3e.zip
Doxygen-175839272b098316a7ec434a85154fbf27669c3e.tar.gz
Doxygen-175839272b098316a7ec434a85154fbf27669c3e.tar.bz2
issue #8286 Incorrect processing of VHDL strings
Just copying normal vhdl comment, don't interpret it.
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 036f830..b92381a 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -348,6 +348,16 @@ NUMBER {INTEGER_NUMBER}|{FLOAT_NUMBER}
yyextra->commentStack.push(new CommentCtx(yyextra->lineNr));
}
}
+<Scan>"--"[^!][^\n]* {
+ if (yyextra->lang!=SrcLangExt_VHDL)
+ {
+ REJECT;
+ }
+ else
+ {
+ copyToOutput(yyscanner,yytext,(int)yyleng);
+ }
+ }
<Scan>"--!" {
if (yyextra->lang!=SrcLangExt_VHDL)
{