1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-04-07 10:04:05 +00:00
parent de3f0a42d8
commit bcdfef89ae
2 changed files with 8 additions and 0 deletions

View file

@ -580,6 +580,9 @@ Comments can be included in a non-<tt>x</tt> pattern with the
<tt>(?#</tt><i>comment</i><tt>)</tt> construct, where <i>comment</i> 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