mruby-compiler: need to adjust the line number for do_block; fix #5949

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-03-11 15:49:35 +09:00
parent 927a9df453
commit 7f79ca2cf6
2 changed files with 343 additions and 339 deletions
+2
View File
@@ -3175,12 +3175,14 @@ do_block : keyword_do_block
{
local_nest(p);
nvars_nest(p);
$<num>$ = p->lineno;
}
opt_block_param
bodystmt
keyword_end
{
$$ = new_block(p,$3,$4);
SET_LINENO($$, $<num>2);
local_unnest(p);
nvars_unnest(p);
}
File diff suppressed because it is too large Load Diff