Skip to content

Commit

Permalink
issue #8286 Incorrect processing of VHDL strings
Browse files Browse the repository at this point in the history
Just copying normal vhdl comment, don't interpret it.
  • Loading branch information
albert-github committed Dec 29, 2020
1 parent af6bf48 commit 1758392
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/commentcnv.l
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1758392

Please sign in to comment.