From 7e06d7708dd552862ea2b705dba5b530a448b845 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 4 Oct 2006 11:03:11 +0000 Subject: * parse.y: revert recent change git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 21cbbfd83..4359705dc 100644 --- a/parse.y +++ b/parse.y @@ -279,7 +279,7 @@ static void top_local_setup(); %type f_arglist f_args f_optarg f_opt f_rest_arg f_block_arg opt_f_block_arg %type assoc_list assocs assoc undef_list backref string_dvar %type block_var opt_block_var brace_block cmd_brace_block do_block lhs none fitem -%type mlhs mlhs_head mlhs_basic mlhs_item mlhs_node +%type mlhs mlhs_head mlhs_basic mlhs_entry mlhs_item mlhs_node %type fsym variable sym symbol operation operation2 operation3 %type cname fname op %type f_norm_arg f_arg @@ -743,7 +743,14 @@ command : operation command_args %prec tLOWEST ; mlhs : mlhs_basic - | tLPAREN mlhs ')' + | tLPAREN mlhs_entry ')' + { + $$ = $2; + } + ; + +mlhs_entry : mlhs_basic + | tLPAREN mlhs_entry ')' { $$ = NEW_MASGN(NEW_LIST($2), 0); } @@ -776,7 +783,7 @@ mlhs_basic : mlhs_head ; mlhs_item : mlhs_node - | tLPAREN mlhs ')' + | tLPAREN mlhs_entry ')' { $$ = $2; } -- cgit