1
0
Fork 0
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:
yui-knk 2017-12-13 01:10:27 +00:00
parent aac91cb762
commit 564dd28616

View file

@ -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));