Fix lexing of integer literals without radix
authorClifford Wolf <clifford@clifford.at>
Fri, 13 Sep 2019 08:19:58 +0000 (10:19 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 13 Sep 2019 08:19:58 +0000 (10:19 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verilog/verilog_lexer.l

index e344ffd4fcffd427eeaf8d69c9d51aa6662dec10..4acfb414da812b0d85c3a80b7596bcf85ae710a2 100644 (file)
@@ -239,7 +239,7 @@ YOSYS_NAMESPACE_END
        return TOK_CONSTVAL;
 }
 
-[0-9]*[ \t]*\'[sS]?[bodhBODH][ \t\r\n]*[0-9a-fA-FzxZX?_]+ {
+[0-9]*[ \t]*\'[sS]?[bodhBODH]?[ \t\r\n]*[0-9a-fA-FzxZX?_]+ {
        frontend_verilog_yylval.string = new std::string(yytext);
        return TOK_CONSTVAL;
 }