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

ruby-changes:12600

From: naruse <ko1@a...>
Date: Wed, 29 Jul 2009 08:11:49 +0900 (JST)
Subject: [ruby-changes:12600] Ruby:r24311 (trunk): * parse.y (regexp): regexp literal at the top of dstr is still needed even if it is empty.

naruse	2009-07-29 08:11:29 +0900 (Wed, 29 Jul 2009)

  New Revision: 24311

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

  Log:
    * parse.y (regexp): regexp literal at the top of dstr is still needed even if it is empty.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24310)
+++ ChangeLog	(revision 24311)
@@ -1,3 +1,8 @@
+Wed Jul 29 08:08:07 2009  NARUSE, Yui  <naruse@r...>
+
+	* parse.y (regexp): regexp literal at the top of dstr is still needed
+	  even if it is empty.
+
 Wed Jul 29 03:36:24 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* ext/json/lib/json/common.rb (JSON#recurse_proc): remove
Index: parse.y
===================================================================
--- parse.y	(revision 24310)
+++ parse.y	(revision 24311)
@@ -3831,7 +3831,7 @@
 			    }
 			    break;
 			  default:
-			    node = NEW_NODE(NODE_DSTR, Qnil, 1, NEW_LIST(node));
+			    node = NEW_NODE(NODE_DSTR, STR_NEW0(), 1, NEW_LIST(node));
 			  case NODE_DSTR:
 			    if (options & RE_OPTION_ONCE) {
 				nd_set_type(node, NODE_DREGX_ONCE);

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

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