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

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

        at  a08f1649ce5bcefa0cf2f8798525ce4f10571f10 (commit)

- Log -----------------------------------------------------------------
commit a08f1649ce5bcefa0cf2f8798525ce4f10571f10
Author: Matthew Horsfall <[email protected]>
Date:   Wed Dec 17 16:28:34 2014 -0500

    Add tests for stringification of regexps containing /n

M       t/re/reg_nocapture.t

commit effd4d648c099f531f5386ea4a103446716d23ed
Author: Matthew Horsfall <[email protected]>
Date:   Wed Dec 17 16:20:46 2014 -0500

    Bump re.pm version for changes

M       ext/re/re.pm

commit 36bce2614950d982be2c171721efe9d5d6c68a11
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 cfab3e390ae20c43030bb464da12d8a660bc0e5d
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 595bd6320f9b6fa1116c171893a53923e80971a5
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