mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-compiler: need to adjust the line number for do_block; fix #5949
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
+341
-339
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user