Enable package imports in blocks.

This commit is contained in:
Martin Whitaker 2019-09-30 20:59:05 +01:00
parent c5c264400e
commit 17f0dd7e6e
1 changed files with 4 additions and 2 deletions

View File

@ -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