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

ruby-changes:8309

From: matz <ko1@a...>
Date: Sat, 18 Oct 2008 20:49:56 +0900 (JST)
Subject: [ruby-changes:8309] Ruby:r19837 (trunk): * parse.y (opt_block_arg): allow trailing comma after usual

matz	2008-10-18 20:49:39 +0900 (Sat, 18 Oct 2008)

  New Revision: 19837

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

  Log:
    * parse.y (opt_block_arg): allow trailing comma after usual
      arguments.  not after block argument.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19836)
+++ ChangeLog	(revision 19837)
@@ -3,6 +3,11 @@
 	* numeric.c (num_sadded): remove newly defined singleton method
 	  that should not exist after exception handling.  [ruby-dev:36569]
 
+Sat Oct 18 14:27:49 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* parse.y (opt_block_arg): allow trailing comma after usual
+	  arguments.  not after block argument.
+
 Sat Oct 18 13:30:53 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* string.c (rb_external_str_new): a new function to convert from
Index: parse.y
===================================================================
--- parse.y	(revision 19836)
+++ parse.y	(revision 19837)
@@ -2399,6 +2399,10 @@
 		    {
 			$$ = $2;
 		    }
+		| ','
+		    {
+			$$ = 0;
+		    }
 		| none
 		    {
 			$$ = 0;

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

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