summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-12-05 13:07:13 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-12-07 18:52:41 -0800
commit9d6ecd7a330475b012bff918b30af2834aec6ea4 (patch)
treee7df2488440e3bb4c540b95fdcad8e5972b8e308 /regcomp.c
parent01f98ec2b0828a07c073b6eef8c4942f61e69e13 (diff)
downloadperl-9d6ecd7a330475b012bff918b30af2834aec6ea4.tar.gz
regcomp.c: Revert to using regcomp.sym order
Now that the new nodes are grouped properly, we can use the fact that the named backreferences all come after all the numbered backreferences, as had been there before.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 60fef5547c..6f3bfe8178 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -9607,7 +9607,7 @@ Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o)
else if (k == REF || k == OPEN || k == CLOSE || k == GROUPP || OP(o)==ACCEPT) {
Perl_sv_catpvf(aTHX_ sv, "%d", (int)ARG(o)); /* Parenth number */
if ( RXp_PAREN_NAMES(prog) ) {
- if ( k != REF || (OP(o) != NREF && OP(o) != NREFF && OP(o) != NREFFL && OP(o) != NREFFU)) {
+ if ( k != REF || (OP(o) < NREF)) {
AV *list= MUTABLE_AV(progi->data->data[progi->name_list_idx]);
SV **name= av_fetch(list, ARG(o), 0 );
if (name)