Re: your Regexp.patch dated 21.8 [PATCH]
authorIlya Zakharevich <ilya@math.berkeley.edu>
Tue, 25 Aug 1998 14:56:06 +0000 (10:56 -0400)
committerGurusamy Sarathy <gsar@cpan.org>
Thu, 24 Sep 1998 08:44:55 +0000 (08:44 +0000)
Message-Id: <199808251856.OAA10825@monk.mps.ohio-state.edu>

p4raw-id: //depot/perl@1874

toke.c

diff --git a/toke.c b/toke.c
index 844b982..2518e54 100644 (file)
--- 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++;
            }