* parse.y (f_norm_arg): ripper has no shadowing check.

* parse.y (f_block_arg): dispatch blkarg_mark.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-08-23 06:51:21 +00:00
parent aa071a3b26
commit ac41d27749
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Thu Aug 23 15:51:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (f_norm_arg): ripper has no shadowing check.
* parse.y (f_block_arg): dispatch blkarg_mark.
Thu Aug 23 15:48:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Aug 23 15:48:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (make_masgn_lhs, iseq_compile_each): fixed indent. * compile.c (make_masgn_lhs, iseq_compile_each): fixed indent.

View file

@ -4154,7 +4154,10 @@ f_norm_arg : tCONSTANT
} }
| tIDENTIFIER | tIDENTIFIER
{ {
/*%%%*/
shadowing_lvar($1); shadowing_lvar($1);
/*%
%*/
$$ = $1; $$ = $1;
} }
; ;
@ -4288,7 +4291,7 @@ f_block_arg : blkarg_mark tIDENTIFIER
arg_var($2); arg_var($2);
$$ = $2; $$ = $2;
/*% /*%
$$ = $2; $$ = dispatch1(blockarg, $2);
%*/ %*/
} }
; ;