From 175839272b098316a7ec434a85154fbf27669c3e Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 29 Dec 2020 18:13:03 +0100 Subject: [PATCH] issue #8286 Incorrect processing of VHDL strings Just copying normal vhdl comment, don't interpret it. --- src/commentcnv.l | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/commentcnv.l b/src/commentcnv.l index 036f830c83a..b92381a402a 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)); } } +"--"[^!][^\n]* { + if (yyextra->lang!=SrcLangExt_VHDL) + { + REJECT; + } + else + { + copyToOutput(yyscanner,yytext,(int)yyleng); + } + } "--!" { if (yyextra->lang!=SrcLangExt_VHDL) {