summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-08-25 10:56:06 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-09-24 08:44:55 +0000
commit5bdf89e7cb68a50d5bd016bfd0379b43445479df (patch)
treeb2058d575f78dd60d1c971954ffacb7e464a8be6 /toke.c
parentd1b8022985c09823f9032ec74d6ce16d9391f57d (diff)
downloadperl-5bdf89e7cb68a50d5bd016bfd0379b43445479df.tar.gz
Re: your Regexp.patch dated 21.8 [PATCH]
Message-Id: <199808251856.OAA10825@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1874
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 844b9829b3..2518e54854 100644
--- a/toke.c
+++ b/toke.c
@@ -976,8 +976,10 @@ scan_const(char *start)
count--;
regparse++;
}
- if (*regparse != ')')
+ if (*regparse != ')') {
+ regparse--; /* Leave one char for continuation. */
yyerror("Sequence (?{...}) not terminated or not {}-balanced");
+ }
while (s < regparse)
*d++ = *s++;
}