mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
6d82373edc
commit
61997a2168
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -1234,7 +1234,7 @@ top_stmt : stmt
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
|
ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
|
||||||
$4, &@$);
|
new_begin($4, &@$), &@$);
|
||||||
/* NEW_PREEXE($4)); */
|
/* NEW_PREEXE($4)); */
|
||||||
/* local_pop(); */
|
/* local_pop(); */
|
||||||
$$ = new_begin(0, &@$);
|
$$ = new_begin(0, &@$);
|
||||||
|
|
Loading…
Reference in a new issue