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

ruby-changes:20187

From: shyouhei <ko1@a...>
Date: Sun, 26 Jun 2011 18:09:57 +0900 (JST)
Subject: [ruby-changes:20187] shyouhei:r32235 (trunk): * parse.y: comma at the end of line is no longer allowed.

shyouhei	2011-06-26 18:09:49 +0900 (Sun, 26 Jun 2011)

  New Revision: 32235

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

  Log:
    * parse.y: comma at the end of line is no longer allowed.
      A patch from Yukihiro Matsumoto  <matz AT ruby-lang.org>.
      (fixed #3456).

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32234)
+++ ChangeLog	(revision 32235)
@@ -1,3 +1,9 @@
+Sun Jun 26 18:03:30 2011  URABE Shyouhei  <shyouhei@r...>
+
+	* parse.y: comma at the end of line is no longer allowed.
+	  A patch from Yukihiro Matsumoto  <matz AT ruby-lang.org>.
+	  (fixed #3456).
+
 Sun Jun 26 13:35:35 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* vm_dump.c (rb_vm_bugreport): change CrashReporter suggestion messages
Index: parse.y
===================================================================
--- parse.y	(revision 32234)
+++ parse.y	(revision 32235)
@@ -2414,6 +2414,18 @@
 
 opt_call_args	: none
 		| call_args
+		| args ','
+		    {
+		      $$ = $1;
+		    }
+		| args ',' assocs ','
+		    {
+		    /*%%%*/
+			$$ = arg_append($1, NEW_HASH($3));
+		    /*%
+			$$ = arg_add_assocs($1, $3);
+		    %*/
+		    }
 		;
 
 call_args	: command
@@ -2487,10 +2499,6 @@
 		    {
 			$$ = $2;
 		    }
-		| ','
-		    {
-			$$ = 0;
-		    }
 		| none
 		    {
 			$$ = 0;

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

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