diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-12 14:27:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-12 14:27:22 +0000 |
commit | 01c4c886625079245a45092c94ec8004df4f88cb (patch) | |
tree | 29a18f8cdb4f3a0aa6fd09349032bd2de7b886e9 /parse.y | |
parent | b0b54a0e4b3be4096ad785e0f7533ee22b2b3d39 (diff) | |
download | ruby-01c4c886625079245a45092c94ec8004df4f88cb.tar.gz ruby-01c4c886625079245a45092c94ec8004df4f88cb.tar.xz ruby-01c4c886625079245a45092c94ec8004df4f88cb.zip |
* parse.y (primary): fix position after FCALL. [ruby-dev:22574]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |