diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-09-13 10:19:58 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-09-13 10:19:58 +0200 |
commit | 855e6a9b9172e6817c9ff57f7041b09a1cc0367e (patch) | |
tree | 00d073bf0d7a13f44ba168d0d2d8275e08447e2c /frontends/verilog | |
parent | 7eb593829f62476598bb15c2fb903d50108e5274 (diff) | |
download | yosys-855e6a9b9172e6817c9ff57f7041b09a1cc0367e.tar.gz yosys-855e6a9b9172e6817c9ff57f7041b09a1cc0367e.tar.bz2 yosys-855e6a9b9172e6817c9ff57f7041b09a1cc0367e.zip |
Fix lexing of integer literals without radix
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends/verilog')
-rw-r--r-- | frontends/verilog/verilog_lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/verilog/verilog_lexer.l b/frontends/verilog/verilog_lexer.l index e344ffd4f..4acfb414d 100644 --- a/frontends/verilog/verilog_lexer.l +++ b/frontends/verilog/verilog_lexer.l @@ -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; } |