[前][次][番号順一覧][スレッド一覧]

ruby-changes:1744

From: ko1@a...
Date: 23 Aug 2007 15:51:28 +0900
Subject: [ruby-changes:1744] nobu - Ruby:r13235 (trunk): * parse.y (f_norm_arg): ripper has no shadowing check.

nobu	2007-08-23 15:51:21 +0900 (Thu, 23 Aug 2007)

  New Revision: 13235

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

  Log:
    * parse.y (f_norm_arg): ripper has no shadowing check.
    
    * parse.y (f_block_arg): dispatch blkarg_mark.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=13235&r2=13234
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13235&r2=13234

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13234)
+++ ChangeLog	(revision 13235)
@@ -1,3 +1,9 @@
+Thu Aug 23 15:51:19 2007  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* compile.c (make_masgn_lhs, iseq_compile_each): fixed indent.
Index: parse.y
===================================================================
--- parse.y	(revision 13234)
+++ parse.y	(revision 13235)
@@ -4154,7 +4154,10 @@
 		    }
 		| tIDENTIFIER
 		    {
+		    /*%%%*/
 			shadowing_lvar($1);
+		    /*%
+		    %*/
 			$$ = $1;
 		    }
 		;
@@ -4288,7 +4291,7 @@
 			arg_var($2);
 			$$ = $2;
 		    /*%
-			$$ = $2;
+			$$ = dispatch1(blockarg, $2);
 		    %*/
 		    }
 		;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]