summaryrefslogtreecommitdiffstats
path: root/parse.y
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
commit793685cd9dbd50f8188702f6b8e04626cb32064f (patch)
treeffe776f2bf8b25e0d642b36bb1f3de881f964f8b /parse.y
parente4abfd3d9e2bb728360557001d29b6402c5796cf (diff)
downloadruby-793685cd9dbd50f8188702f6b8e04626cb32064f.tar.gz
ruby-793685cd9dbd50f8188702f6b8e04626cb32064f.tar.xz
ruby-793685cd9dbd50f8188702f6b8e04626cb32064f.zip
Wed Sep 26 19:02:39 2001 Guy Decoux <ts@moulon.inra.fr>
* parse.y: allow 'primary[] = arg' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 2816976a2..8da2f7f55 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;