mirror of https://github.com/YosysHQ/yosys.git
Set Verilog source location for explicit blocks (`begin` ... `end`).
This commit is contained in:
parent
10a814f978
commit
00d74f0b9c
|
@ -2246,6 +2246,7 @@ behavioral_stmt:
|
|||
exitTypeScope();
|
||||
if ($4 != NULL && $8 != NULL && *$4 != *$8)
|
||||
frontend_verilog_yyerror("Begin label (%s) and end label (%s) don't match.", $4->c_str()+1, $8->c_str()+1);
|
||||
SET_AST_NODE_LOC(ast_stack.back(), @2, @8);
|
||||
delete $4;
|
||||
delete $8;
|
||||
ast_stack.pop_back();
|
||||
|
|
Loading…
Reference in New Issue