From fe898043ccc99f3e127c63e0c18f4d2233bfa555 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 15 Aug 2007 04:52:56 +0000 Subject: * parse.y: fix rules around f_margs. "make test" passes all tests. * bootstraptest/test_block.rb: add some tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 9b90ff320d..ef7d3e6ee6 100644 --- a/parse.y +++ b/parse.y @@ -1389,7 +1389,7 @@ mlhs_basic : mlhs_head | mlhs_head tSTAR ',' mlhs_post { /*%%%*/ - $$ = NEW_MASGN($1, NEW_POSTARG(-1,$4)); + $$ = NEW_MASGN($1, NEW_POSTARG(-1, $4)); /*% $$ = mlhs_add_star($1, Qnil); %*/ @@ -1421,7 +1421,7 @@ mlhs_basic : mlhs_head | tSTAR ',' mlhs_post { /*%%%*/ - $$ = NEW_MASGN(0, NEW_POSTARG(-1,$3)); + $$ = NEW_MASGN(0, NEW_POSTARG(-1, $3)); /*% $$ = mlhs_add_star(mlhs_new(), Qnil); %*/ @@ -3001,7 +3001,7 @@ for_var : lhs f_marg : f_norm_arg { /*%%%*/ - $$ = NEW_LIST(assignable($1, 0)); + $$ = assignable($1, 0); //NEW_LIST(assignable($1, 0)); /*% $$ = dispatch1(mlhs_paren, $1); %*/ @@ -3009,7 +3009,7 @@ f_marg : f_norm_arg | tLPAREN f_margs rparen { /*%%%*/ - $$ = NEW_MASGN(NEW_LIST($2), 0); + $$ = $2; //NEW_LIST($2); /*% $$ = dispatch1(mlhs_paren, $2); %*/ @@ -3019,7 +3019,7 @@ f_marg : f_norm_arg f_marg_list : f_marg { /*%%%*/ - $$ = $1; + $$ = NEW_LIST($1); /*% $$ = mlhs_add(mlhs_new(), $1); %*/ -- cgit v1.2.3