Un-break default specify parser
authorClifford Wolf <clifford@clifford.at>
Sun, 21 Apr 2019 20:58:51 +0000 (22:58 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 23 Apr 2019 19:36:59 +0000 (21:36 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verilog/verilog_lexer.l

index b73ccf5c1f19d30499fdc20d6d9a9e569ae72cbe..f49f9d3a29605041d28996e489b8bdf194e4fa75 100644 (file)
@@ -412,6 +412,7 @@ import[ \t\r\n]+\"(DPI|DPI-C)\"[ \t\r\n]+function[ \t\r\n]+ {
 "-:" { return TOK_NEG_INDEXED; }
 
 [-+]?[=*]> {
+       if (!specify_mode) REJECT;
        frontend_verilog_yylval.string = new std::string(yytext);
        return TOK_SPECIFY_OPER;
 }