diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-10 12:55:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-10 12:55:16 +0000 |
commit | 380a0633f558691622287909f0e36106a39454f8 (patch) | |
tree | 7fb3d5545ce34890ebe1993367df0362e01d5716 /regcomp.c | |
parent | 4e34385f1add67f206da4307d1e033b6827d3720 (diff) | |
download | perl-380a0633f558691622287909f0e36106a39454f8.tar.gz |
Get back into sync with Jeffrey on the enhanced regex warnings.
p4raw-id: //depot/perl@6563
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2190,14 +2190,14 @@ S_reg(pTHX_ I32 paren, I32 *flagp) if (paren) { PL_regflags = oregflags; if (PL_regcomp_parse >= PL_regxend || *nextchar() != ')') { - PL_regcomp_parse++; - vFAIL("Unmatched ("); + PL_regcomp_parse = oregcomp_parse; + vFAIL("Unmatched ("); } } else if (!paren && PL_regcomp_parse < PL_regxend) { if (*PL_regcomp_parse == ')') { - PL_regcomp_parse = oregcomp_parse; - vFAIL("Unmatched ("); + PL_regcomp_parse++; + vFAIL("Unmatched )"); } else FAIL("Junk on end of regexp"); /* "Can't happen". */ @@ -2704,8 +2704,8 @@ tryagain: if (num > 9 && num >= PL_regnpar) goto defchar; else { - while (isDIGIT(*PL_regcomp_parse)) - PL_regcomp_parse++; + while (isDIGIT(*PL_regcomp_parse)) + PL_regcomp_parse++; if (!SIZE_ONLY && num > PL_regcomp_rx->nparens) vFAIL("Reference to nonexistent group"); |