diff options
author | Lukasz Dalek <ldalek@antmicro.com> | 2020-06-19 20:46:38 +0200 |
---|---|---|
committer | Kamil Rakoczy <krakoczy@antmicro.com> | 2020-06-24 11:57:45 +0200 |
commit | a8750b496e0bf7943abab813531cc3fba9b60352 (patch) | |
tree | d171d221f4be8fbbf1721117899c214e6b8402d5 /frontends/verilog | |
parent | 3b81a1b80926138cf0c3fe6d88818b689be3121c (diff) | |
download | yosys-a8750b496e0bf7943abab813531cc3fba9b60352.tar.gz yosys-a8750b496e0bf7943abab813531cc3fba9b60352.tar.bz2 yosys-a8750b496e0bf7943abab813531cc3fba9b60352.zip |
Support optional labels at the end of package definition
Signed-off-by: Lukasz Dalek <ldalek@antmicro.com>
Diffstat (limited to 'frontends/verilog')
-rw-r--r-- | frontends/verilog/verilog_parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index 6687a195e..4f3df575b 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -556,7 +556,7 @@ package: current_ast_mod = mod; mod->str = *$4; append_attr(mod, $1); - } ';' package_body TOK_ENDPACKAGE { + } ';' package_body TOK_ENDPACKAGE opt_label { ast_stack.pop_back(); current_ast_mod = NULL; exitTypeScope(); |