parse.y: set case_body line position to args
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
057c88bc00
commit
e1ac09dbe9
1
parse.y
1
parse.y
@ -3845,6 +3845,7 @@ case_body : keyword_when args then
|
|||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = NEW_WHEN($2, $4, $5);
|
$$ = NEW_WHEN($2, $4, $5);
|
||||||
|
fixpos($$, $2);
|
||||||
$$->nd_loc = @$;
|
$$->nd_loc = @$;
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch3(when, $2, $4, escape_Qundef($5));
|
$$ = dispatch3(when, $2, $4, escape_Qundef($5));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user