summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-07 11:51:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-07 11:51:29 +0000
commite1ac09dbe9a776f124b763905a62f1913ba9792a (patch)
treef449f8b796918a900bb97c0074eae2332d575149
parent057c88bc0010e24118c1136f12638c6dea837212 (diff)
downloadruby-e1ac09dbe9a776f124b763905a62f1913ba9792a.tar.gz
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
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 2e6863dbde..efee472e23 100644
--- a/parse.y
+++ b/parse.y
@@ -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));