diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-11-24 14:48:07 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-11-24 14:48:07 +0100 |
commit | 76c83283c44267969b96dc53bf02775aa950b5be (patch) | |
tree | 0e80fa6b4ad83a3dc18cb054f07414f2defa1af0 /frontends/verilog | |
parent | 56c7d1e266cf6b2f9bfcb9f76f2ddf388ddc51ea (diff) | |
download | yosys-76c83283c44267969b96dc53bf02775aa950b5be.tar.gz yosys-76c83283c44267969b96dc53bf02775aa950b5be.tar.bz2 yosys-76c83283c44267969b96dc53bf02775aa950b5be.zip |
Fixed minor bug in parsing delays
Diffstat (limited to 'frontends/verilog')
-rw-r--r-- | frontends/verilog/verilog_lexer.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/verilog/verilog_lexer.l b/frontends/verilog/verilog_lexer.l index c3dfa8b92..74a66d964 100644 --- a/frontends/verilog/verilog_lexer.l +++ b/frontends/verilog/verilog_lexer.l @@ -342,7 +342,10 @@ import[ \t\r\n]+\"(DPI|DPI-C)\"[ \t\r\n]+function[ \t\r\n]+ { [ \t\r\n] /* ignore whitespaces */ \\[\r\n] /* ignore continuation sequence */ "//"[^\r\n]* /* ignore one-line comments */ -"#"[$a-zA-Z_0-9\.]+ /* ignore simulation timings */ + +"#"\ *[0-9][0-9_]* /* ignore simulation timings */ +"#"\ *[0-9][0-9_]*\.[0-9][0-9_]* /* ignore simulation timings */ +"#"\ *[$a-zA-Z_\.][$a-zA-Z_0-9\.]* /* ignore simulation timings */ . { return *yytext; } |