verilog: fix string literal regular expression.
A backslash was improperly quoted, causing string literal matching to fail when the final token before a closing quote was an escaped backslash.
This commit is contained in:
@@ -336,7 +336,7 @@ TIME_SCALE_SUFFIX [munpf]?s
|
||||
}
|
||||
|
||||
\" { BEGIN(STRING); }
|
||||
<STRING>([^\"]|\\.)+ { yymore(); real_location = old_location; }
|
||||
<STRING>([^\\"]|\\.)+ { yymore(); real_location = old_location; }
|
||||
<STRING>\" {
|
||||
BEGIN(0);
|
||||
char *yystr = strdup(yytext);
|
||||
|
||||
Reference in New Issue
Block a user