summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-03 06:14:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-03 06:14:58 +0000
commit61997a2168ca4c82849c574a1fbc6d43ef8f2908 (patch)
treeed8caee3f94e2afd3c070eac8fc7baa7be1fa2f3 /parse.y
parent6d82373edcba5a0dc4b5cbc0c3110abdb566b91f (diff)
parse.y: location of BEGIN
* parse.y (top_stmt): wrap BEGIN statement to store the whole location for each block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index c3bb0210fd4..c2dfd841c14 100644
--- a/parse.y
+++ b/parse.y
@@ -1234,7 +1234,7 @@ top_stmt : stmt
{
/*%%%*/
ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
- $4, &@$);
+ new_begin($4, &@$), &@$);
/* NEW_PREEXE($4)); */
/* local_pop(); */
$$ = new_begin(0, &@$);