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

ruby-changes:8358

From: matz <ko1@a...>
Date: Wed, 22 Oct 2008 15:03:28 +0900 (JST)
Subject: [ruby-changes:8358] Ruby:r19886 (trunk): * parse.y (f_larglist): should not allow semicolon separated local

matz	2008-10-22 15:03:12 +0900 (Wed, 22 Oct 2008)

  New Revision: 19886

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19886

  Log:
    * parse.y (f_larglist): should not allow semicolon separated local
      variable declarations if formal argument list is not surrounded
      by parentheses, mostly because semicolon outside of parentheses
      appears to terminate the expression.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19885)
+++ ChangeLog	(revision 19886)
@@ -1,3 +1,10 @@
+Wed Oct 22 14:59:30 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* parse.y (f_larglist): should not allow semicolon separated local
+	  variable declarations if formal argument list is not surrounded
+	  by parentheses, mostly because semicolon outside of parentheses
+	  appears to terminate the expression.
+
 Wed Oct 22 14:52:17 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* string.c (rb_external_str_new_with_enc): no implicit strlen call.
Index: parse.y
===================================================================
--- parse.y	(revision 19885)
+++ parse.y	(revision 19886)
@@ -3453,7 +3453,7 @@
 			$$ = dispatch1(paren, $2);
 		    %*/
 		    }
-		| f_args opt_bv_decl
+		| f_args
 		    {
 		    /*%%%*/
 			$$ = NEW_LAMBDA($1);

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

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