From 32c60b1efe60227724ecf000eea9664b0e5396f2 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 7 Apr 2016 10:04:05 +0000 Subject: regexp.rdoc: terminators in comments [ci skip] * 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/trunk@54510 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 4722f2e7f5..49fce51a8d 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -580,6 +580,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