diff options
author | David Mitchell <davem@iabyn.com> | 2012-05-22 10:40:55 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-06-13 13:32:53 +0100 |
commit | 7e1a2c8d3379302594e45d7ac3b09fd4b6477ffc (patch) | |
tree | 5d0e695aeea423523e3c1b4dc5658960f9e28308 /regen/mk_PL_charclass.pl | |
parent | f067efbfa97c3658b1cf186884f09e38fcee1876 (diff) | |
download | perl-7e1a2c8d3379302594e45d7ac3b09fd4b6477ffc.tar.gz |
pp_match(): clarify intuit parens behaviour
There was some dodgy code, (flagged by dmq), that as well
as setting RX_LASTPAREN(rx), RX_LASTCLOSEPAREN(rx) to zero,
also set RX_NPARENS(rx) to zero.
The actual logic is that if we reach that point, the pattern shouldn't
have any capturing parentheses, so instead of assigning zero to it, assert
that RX_NPARENS(rx) is zero.
Diffstat (limited to 'regen/mk_PL_charclass.pl')
0 files changed, 0 insertions, 0 deletions