From 17f0dd7e6e3bb0706a3585841eb9189dd785a6ec Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 30 Sep 2019 20:59:05 +0100 Subject: [PATCH] Enable package imports in blocks. --- parse.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parse.y b/parse.y index 462508ad5..eb10d6b72 100644 --- a/parse.y +++ b/parse.y @@ -2552,6 +2552,10 @@ block_item_decl | type_declaration + /* Blocks can have imports. */ + + | package_import_declaration + /* Recover from errors that happen within variable lists. Use the trailing semi-colon to resync the parser. */ @@ -5076,8 +5080,6 @@ module_item | modport_declaration - | package_import_declaration - /* 1364-2001 and later allow specparam declarations outside specify blocks. */ | attribute_list_opt K_specparam