vhdlpp: Simplified regex to detect string literals.

This commit is contained in:
Maciej Suminski 2015-09-15 10:21:49 +02:00
parent 925827d2c2
commit 6fee37a640
1 changed files with 1 additions and 3 deletions

View File

@ -111,9 +111,7 @@ time {integer}{W}*([fFpPnNuUmM]?[sS])
return CHARACTER_LITERAL;
}
(\"([^\"]|(\"\"))*?\")|(\"[^\"]*\") {
/* first pattern: string literals with doubled quotation mark */
/* second pattern: string literals without doubled quotation */
(\"([^\"]|(\"\"))*?\") {
yylval.text = escape_quot_and_dup(yytext);
assert(yylval.text);
return STRING_LITERAL;