summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorts <ts@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-26 17:09:47 +0000
committerts <ts@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-26 17:09:47 +0000
commit810d9fcdbf01f743f111a29902118f88d2f237b0 (patch)
treeffe776f2bf8b25e0d642b36bb1f3de881f964f8b
parent906d9cc83b2094f1c9e33c0b1a186de381741692 (diff)
Wed Sep 26 19:02:39 2001 Guy Decoux <ts@moulon.inra.fr>
* parse.y: allow 'primary[] = arg' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--parse.y2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c087dce9b3..e6e8342388 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep 26 19:02:39 2001 Guy Decoux <ts@moulon.inra.fr>
+
+ * parse.y: allow 'primary[] = arg'
+
Tue Sep 25 10:46:42 2001 Usaku Nakamura <usa@ruby-lang.org>
* win32/win32.c (isInternalCmd): check return value of NtMakeCmdVector
diff --git a/parse.y b/parse.y
index 2816976a2b..8da2f7f555 100644
--- a/parse.y
+++ b/parse.y
@@ -717,7 +717,7 @@ arg : lhs '=' arg
{
NODE *args = NEW_LIST($6);
- list_append($3, NEW_NIL());
+ $3 = list_append($3, NEW_NIL());
list_concat(args, $3);
if ($5 == tOROP) {
$5 = 0;