mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y: Revert r61196
* parse.y: Because top_stmts is generated from none (not "/* none */"), @0 is not set by YYLLOC_DEFAULT. So @0 is a meaningless location. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aac91cb762
commit
564dd28616
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -1205,7 +1205,7 @@ top_compstmt : top_stmts opt_terms
|
||||||
top_stmts : none
|
top_stmts : none
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = new_begin(0, &@0);
|
$$ = new_begin(0, &@$);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch2(stmts_add, dispatch0(stmts_new),
|
$$ = dispatch2(stmts_add, dispatch0(stmts_new),
|
||||||
dispatch0(void_stmt));
|
dispatch0(void_stmt));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue