In perl.git, the branch alh/regex_nocapture has been created

<http://perl5.git.perl.org/perl.git/commitdiff/cf1ed97f6106bc0543d3997399210fe0598eeeb5?hp=0000000000000000000000000000000000000000>

        at  cf1ed97f6106bc0543d3997399210fe0598eeeb5 (commit)

- Log -----------------------------------------------------------------
commit cf1ed97f6106bc0543d3997399210fe0598eeeb5
Author: Matthew Horsfall (alh) <[email protected]>
Date:   Wed Oct 22 20:56:47 2014 -0400

    Support for nocapture regexp flag /n
    
    This flag will prevent () from capturing and filling in $1, $2, etc...
    
    Named captures will still work though, and if used will cause $1, $2, etc...
    to be filled in *only* within named groups.
    
    The motivation behind this is to allow the common construct of:
    
      /(?:b|c)a(?:t|n)/
    
    To be rewritten more cleanly as:
    
      /(b|c)a(t|n)/n
    
    When you want grouping but no memory penalty on captures.
    
    You can also use ?n inside of a () directly to avoid capturing, and
    ?-n inside of a () to negate its effects if you want to capture.

M       MANIFEST
M       dump.c
M       ext/re/re.pm
M       regcomp.c
M       regexp.h
A       t/re/reg_nocapture.t

commit ac4b4dd09769874ef1b69355cda002395e538c42
Author: Matthew Horsfall (alh) <[email protected]>
Date:   Wed Oct 22 20:50:13 2014 -0400

    Fixes to make test pass for regexp nocapture bit addition.
    
     * Make Devel-Peek/t/Peek.t less sensitive to regexp flag changes.
    
       Devel-Peek had flag names and binary representation hardcoded. Flag
       names *should* be enough. Otherwise we have to update bits of this
       test every time we muck with flags that don't affect the flags being
       tested.
    
     * Let B::Deparse know about the new RXf_PMf_CHARSET shift value.

M       ext/Devel-Peek/t/Peek.t
M       lib/B/Deparse.pm

commit 4513c8aa7e289c23f79c9906a745b0c190fcf196
Author: Karl Williamson <[email protected]>
Date:   Wed Oct 22 12:38:20 2014 -0600

    Create bit for /n.

M       op.h
M       op_reg_common.h
M       regexp.h
M       regnodes.h
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to