diff options
author | Karl Williamson <khw@cpan.org> | 2015-08-21 13:06:53 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-08-24 12:11:33 -0600 |
commit | ac44c12e0b8cc8431bb165c203dcf56d2659302c (patch) | |
tree | 325aad4748583d78cdd8b71cecd71e07301bf0bf /regcomp.c | |
parent | b24abbc803191b400f0d0ab41db2f184860e7534 (diff) | |
download | perl-ac44c12e0b8cc8431bb165c203dcf56d2659302c.tar.gz |
Add ANYOFD regex node
This is like an ANYOF node, but just for when /d is in effect. It will
be used in future commits
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5097,6 +5097,7 @@ PerlIO_printf(Perl_debug_log, "LHS=%"UVuf" RHS=%"UVuf"\n", } break; + case ANYOFD: case ANYOFL: case ANYOF: if (flags & SCF_DO_STCLASS_AND) @@ -14262,7 +14263,9 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth, ret = reganode(pRExC_state, (LOC) ? ANYOFL - : ANYOF, + : (DEPENDS_SEMANTICS) + ? ANYOFD + : ANYOF, 0); if (SIZE_ONLY) { |