summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-26 05:41:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-26 05:41:11 +0000
commit09c8c7b889ac52acbcdbebabfde149f452d55173 (patch)
treea931cca89275a54d5b165732f694f8ead8944608 /regex.c
parent62ab025322838f01093a290df0cc503bc82a6081 (diff)
* parse.y (block_append): update nd_end for "real" head node.
[ruby-list:39058] * eval.c (proc_eq): Proc with empty body may not be equal. [ruby-dev:22590] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/regex.c b/regex.c
index 7db560b..ff41eb8 100644
--- a/regex.c
+++ b/regex.c
@@ -2181,6 +2181,7 @@ re_compile_pattern(pattern, size, bufp)
unfetch_interval:
/* If an invalid interval, match the characters as literals. */
+ re_warning("regexp has invalid interval");
p = beg_interval;
beg_interval = 0;
@@ -2363,6 +2364,8 @@ re_compile_pattern(pattern, size, bufp)
default:
if (c == ']')
re_warning("regexp has `]' without escape");
+ else if (c == '}')
+ re_warning("regexp has `}' without escape");
normal_char: /* Expects the character in `c'. */
had_mbchar = 0;
if (ismbchar(c)) {