projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b81a1b
)
Support optional labels at the end of package definition
author
Lukasz Dalek
<ldalek@antmicro.com>
Fri, 19 Jun 2020 18:46:38 +0000
(20:46 +0200)
committer
Kamil 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
patch
|
blob
|
history
diff --git
a/frontends/verilog/verilog_parser.y
b/frontends/verilog/verilog_parser.y
index 6687a195e6f27df79048dddd1882248f69a80627..4f3df575b717e8e7955351dfb8d5520a4a8902d5 100644
(file)
--- 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();