projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eb5938
)
Fix lexing of integer literals without radix
author
Clifford Wolf
<clifford@clifford.at>
Fri, 13 Sep 2019 08:19:58 +0000
(10:19 +0200)
committer
Clifford 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
patch
|
blob
|
history
diff --git
a/frontends/verilog/verilog_lexer.l
b/frontends/verilog/verilog_lexer.l
index e344ffd4fcffd427eeaf8d69c9d51aa6662dec10..4acfb414da812b0d85c3a80b7596bcf85ae710a2 100644
(file)
--- 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;
}