From cce82740b5b7f814196ddd2ad78242d02ce2e11c Mon Sep 17 00:00:00 2001 From: nagachika Date: Fri, 22 Apr 2016 14:47:15 +0000 Subject: merge revision(s) 54510: [Backport #12256] * doc/regexp.rdoc (comments): [DOC] terminators cannot appear in comments. [ruby-core:74838] [Bug #12256] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/regexp.rdoc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index 02a5f300ee..7384670557 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -568,6 +568,9 @@ Comments can be included in a non-x pattern with the (?#comment) construct, where comment is arbitrary text ignored by the regexp engine. +Comments in regexp literals cannot include unescaped terminator +characters. + == Encoding Regular expressions are assumed to use the source encoding. This can be -- cgit v1.2.3