Skip to content

Commit

Permalink
* parse.y (f_norm_arg): ripper has no shadowing check.
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Aug 23, 2007
1 parent aa071a3 commit ac41d27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -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>

* compile.c (make_masgn_lhs, iseq_compile_each): fixed indent.
Expand Down
5 changes: 4 additions & 1 deletion parse.y
Expand Up @@ -4154,7 +4154,10 @@ f_norm_arg : tCONSTANT
}
| tIDENTIFIER
{
/*%%%*/
shadowing_lvar($1);
/*%
%*/
$$ = $1;
}
;
Expand Down Expand Up @@ -4288,7 +4291,7 @@ f_block_arg : blkarg_mark tIDENTIFIER
arg_var($2);
$$ = $2;
/*%
$$ = $2;
$$ = dispatch1(blockarg, $2);
%*/
}
;
Expand Down

0 comments on commit ac41d27

Please sign in to comment.