aboutsummaryrefslogtreecommitdiffstats
path: root/doc/regexp.rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/regexp.rdoc')
-rw-r--r--doc/regexp.rdoc3
1 files changed, 3 insertions, 0 deletions
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-<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