From: Lukasz Dalek Date: Fri, 19 Jun 2020 18:46:38 +0000 (+0200) Subject: Support optional labels at the end of package definition X-Git-Tag: working-ls180~446^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8750b496e0bf7943abab813531cc3fba9b60352;p=yosys.git Support optional labels at the end of package definition Signed-off-by: Lukasz Dalek --- 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();