From a8750b496e0bf7943abab813531cc3fba9b60352 Mon Sep 17 00:00:00 2001 From: Lukasz Dalek Date: Fri, 19 Jun 2020 20:46:38 +0200 Subject: [PATCH] Support optional labels at the end of package definition Signed-off-by: Lukasz Dalek --- frontends/verilog/verilog_parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2