summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/re.c b/re.c
index 3316da2d72..2789120cd4 100644
--- a/re.c
+++ b/re.c
@@ -3449,6 +3449,18 @@ re_warn(const char *s)
}
/*
+ * Document-class: RegexpError
+ *
+ * Raised when given an invalid regexp expression.
+ *
+ * Regexp.new("?")
+ *
+ * <em>raises the exception:</em>
+ *
+ * RegexpError: target of repeat operator is not specified: /?/
+ */
+
+/*
* Document-class: Regexp
*
* A <code>Regexp</code> holds a regular expression, used to match a pattern