diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-12-05 13:07:13 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-12-07 18:52:41 -0800 |
commit | 9d6ecd7a330475b012bff918b30af2834aec6ea4 (patch) | |
tree | e7df2488440e3bb4c540b95fdcad8e5972b8e308 /regcomp.c | |
parent | 01f98ec2b0828a07c073b6eef8c4942f61e69e13 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |