Support optional labels at the end of module definition
authorLukasz Dalek <ldalek@antmicro.com>
Tue, 19 May 2020 14:58:48 +0000 (16:58 +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 15c231f3b98b1b02f4724b0b2df14ced514259a5..6687a195e6f27df79048dddd1882248f69a80627 100644 (file)
@@ -435,7 +435,7 @@ module:
                mod->str = *$4;
                append_attr(mod, $1);
                delete $4;
-       } module_para_opt module_args_opt ';' module_body TOK_ENDMODULE {
+       } module_para_opt module_args_opt ';' module_body TOK_ENDMODULE opt_label {
                if (port_stubs.size() != 0)
                        frontend_verilog_yyerror("Missing details for module port `%s'.",
                                        port_stubs.begin()->first.c_str());