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:
nobu 2018-01-07 11:51:29 +00:00
parent 057c88bc00
commit e1ac09dbe9

View File

@ -3845,6 +3845,7 @@ case_body : keyword_when args then
{
/*%%%*/
$$ = NEW_WHEN($2, $4, $5);
fixpos($$, $2);
$$->nd_loc = @$;
/*%
$$ = dispatch3(when, $2, $4, escape_Qundef($5));