summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--parse.y2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e5615fae6..71b083bfe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jan 12 23:27:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (primary): fix position after FCALL. [ruby-dev:22574]
+
Mon Jan 12 12:07:22 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods):
diff --git a/parse.y b/parse.y
index 3417e38f9..6bf656fe2 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