Support optional labels at the end of package definition
authorLukasz Dalek <ldalek@antmicro.com>
Fri, 19 Jun 2020 18:46:38 +0000 (20:46 +0200)
committerKamil Rakoczy <krakoczy@antmicro.com>
Wed, 24 Jun 2020 09:57:45 +0000 (11:57 +0200)
Signed-off-by: Lukasz Dalek <ldalek@antmicro.com>
frontends/verilog/verilog_parser.y

index 6687a195e6f27df79048dddd1882248f69a80627..4f3df575b717e8e7955351dfb8d5520a4a8902d5 100644 (file)
@@ -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();