diff options
author | albert-github <albert.tests@gmail.com> | 2020-12-29 17:13:03 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-12-29 17:13:03 (GMT) |
commit | 175839272b098316a7ec434a85154fbf27669c3e (patch) | |
tree | 47261fab144a6bca15b52e14c6544e957fbbd0bb | |
parent | af6bf4883affe57d3be48e4b4538eb3c47decfad (diff) | |
download | Doxygen-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.
-rw-r--r-- | src/commentcnv.l | 10 |
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) { |