summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-28 23:11:29 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-28 23:11:29 +0000
commit3bb239ef82f727a56181d13b29def44c4a19b48d (patch)
tree7a0dfcdfeb9b965ce585abc5717a10210a5755ef
parent052c83760790258d40a7796b85bdad164cef3d28 (diff)
downloadruby-3bb239ef82f727a56181d13b29def44c4a19b48d.tar.gz
ruby-3bb239ef82f727a56181d13b29def44c4a19b48d.tar.xz
ruby-3bb239ef82f727a56181d13b29def44c4a19b48d.zip
* parse.y (regexp): regexp literal at the top of dstr is still needed even if it is empty.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 35d891b12..d21fc912b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jul 29 08:08:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* ext/json/lib/json/common.rb (JSON#recurse_proc): remove
diff --git a/parse.y b/parse.y
index 10ac87874..fbbad25fb 100644
--- a/parse.y
+++ b/parse.y
@@ -3831,7 +3831,7 @@ regexp : tREGEXP_BEG xstring_contents tREGEXP_END
}
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);