1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (primary): fix position after FCALL. [ruby-dev:22574]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-01-12 14:27:22 +00:00
parent a739d26d0a
commit d094d00720
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Mon Jan 12 23:26:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (primary): fix position after FCALL. [ruby-dev:22574]
Mon Jan 12 18:00:11 2004 Ian Macdonald <ian@caliban.org> Mon Jan 12 18:00:11 2004 Ian Macdonald <ian@caliban.org>
* file.c (test_wr, test_ww): New functions implementing new * file.c (test_wr, test_ww): New functions implementing new

View file

@ -1460,6 +1460,7 @@ primary : literal
$$ = NEW_FCALL(tAREF, $3); $$ = NEW_FCALL(tAREF, $3);
else else
$$ = NEW_CALL($1, tAREF, $3); $$ = NEW_CALL($1, tAREF, $3);
fixpos($$, $1);
} }
| tLBRACK aref_args ']' | tLBRACK aref_args ']'
{ {
@ -1499,6 +1500,7 @@ primary : literal
{ {
$2->nd_iter = NEW_FCALL($1, 0); $2->nd_iter = NEW_FCALL($1, 0);
$$ = $2; $$ = $2;
fixpos($2->nd_iter, $2);
} }
| method_call | method_call
| method_call brace_block | method_call brace_block