From 810d9fcdbf01f743f111a29902118f88d2f237b0 Mon Sep 17 00:00:00 2001 From: ts Date: Wed, 26 Sep 2001 17:09:47 +0000 Subject: [PATCH] Wed Sep 26 19:02:39 2001 Guy Decoux * parse.y: allow 'primary[] = arg' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ parse.y | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * parse.y: allow 'primary[] = arg' + Tue Sep 25 10:46:42 2001 Usaku Nakamura * 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;