summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-12 14:27:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-12 14:27:22 +0000
commit1666a8520c06f95fd1b49fab4f92e0bb902c41dd (patch)
tree29a18f8cdb4f3a0aa6fd09349032bd2de7b886e9 /parse.y
parent2cf0333f73b9bcfcbd992493c7d845b0ffcb0b91 (diff)
* parse.y (primary): fix position after FCALL. [ruby-dev:22574]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 3417e38..6bf656f 100644
--- a/parse.y
+++ b/parse.y
@@ -1460,6 +1460,7 @@ primary : literal
$$ = NEW_FCALL(tAREF, $3);
else
$$ = NEW_CALL($1, tAREF, $3);
+ fixpos($$, $1);
}
| tLBRACK aref_args ']'
{
@@ -1499,6 +1500,7 @@ primary : literal
{
$2->nd_iter = NEW_FCALL($1, 0);
$$ = $2;
+ fixpos($2->nd_iter, $2);
}
| method_call
| method_call brace_block