diff options
author | Karl Williamson <khw@cpan.org> | 2020-10-15 07:30:58 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-10-15 07:47:16 -0600 |
commit | 6fc5487b6505404743d354980d786d2a80868c0c (patch) | |
tree | 97e055b1cadb4b4328125e04a23ff3714a59da47 /regcomp.c | |
parent | 5d5b9c460e2a06563d2b5e35a1a79991460696eb (diff) | |
download | perl-6fc5487b6505404743d354980d786d2a80868c0c.tar.gz |
regcomp.c: Zero width constructs shouldn't be SIMPLE
This is reserved for length-1 constructs.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -13609,7 +13609,6 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth) /* SBOL is shared with /^/ so we set the flags so we can tell * /\A/ from /^/ in split. */ FLAGS(REGNODE_p(ret)) = 1; - *flagp |= SIMPLE; /* Wrong, but too late to fix for 5.32 */ } goto finish_meta_pat; case 'G': @@ -13646,7 +13645,6 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth) } else { ret = reg_node(pRExC_state, SEOL); - *flagp |= SIMPLE; /* Wrong, but too late to fix for 5.32 */ } RExC_seen_zerolen++; /* Do not optimize RE away */ goto finish_meta_pat; @@ -13657,7 +13655,6 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth) } else { ret = reg_node(pRExC_state, EOS); - *flagp |= SIMPLE; /* Wrong, but too late to fix for 5.32 */ } RExC_seen_zerolen++; /* Do not optimize RE away */ goto finish_meta_pat; |