summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-13 01:10:27 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-13 01:10:27 +0000
commit564dd28616b16f5c72ce324b39eac01b3c596279 (patch)
tree1c71194323d6e4b14f6a06a5dc4a56ac2ed60b8c /parse.y
parentaac91cb762e20519aca6190345641d27e5991a75 (diff)
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
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 5d63ff2ee7..2eb1a0e1f8 100644
--- a/parse.y
+++ b/parse.y
@@ -1205,7 +1205,7 @@ top_compstmt : top_stmts opt_terms
top_stmts : none
{
/*%%%*/
- $$ = new_begin(0, &@0);
+ $$ = new_begin(0, &@$);
/*%
$$ = dispatch2(stmts_add, dispatch0(stmts_new),
dispatch0(void_stmt));