mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* parse.y (regexp): regexp literal at the top of dstr is still needed even if it is empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
edf05962c0
commit
3ca25b5a29
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
Wed Jul 29 03:36:24 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* ext/json/lib/json/common.rb (JSON#recurse_proc): remove
|
* ext/json/lib/json/common.rb (JSON#recurse_proc): remove
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -3831,7 +3831,7 @@ regexp : tREGEXP_BEG xstring_contents tREGEXP_END
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
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:
|
case NODE_DSTR:
|
||||||
if (options & RE_OPTION_ONCE) {
|
if (options & RE_OPTION_ONCE) {
|
||||||
nd_set_type(node, NODE_DREGX_ONCE);
|
nd_set_type(node, NODE_DREGX_ONCE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue