diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-03 06:14:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-03 06:14:58 +0000 |
commit | 61997a2168ca4c82849c574a1fbc6d43ef8f2908 (patch) | |
tree | ed8caee3f94e2afd3c070eac8fc7baa7be1fa2f3 | |
parent | 6d82373edcba5a0dc4b5cbc0c3110abdb566b91f (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
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, &@$); |