diff options
author | Yves Orton <demerphq@gmail.com> | 2014-10-12 23:08:42 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2014-10-20 00:32:30 +0200 |
commit | e60d552100fc966cb2917d32cf2e708d20a6427f (patch) | |
tree | d2e36db9c6c25e035bd54705fe13e5c951d387f6 /regcomp.c | |
parent | d615717366f1596d4a1b18ce2ca5a224dc076107 (diff) | |
download | perl-e60d552100fc966cb2917d32cf2e708d20a6427f.tar.gz |
regcomp.c: study_chunk(): improve branch-branch comment
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3809,9 +3809,12 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, ) { next = regnext(scan); code = OP(scan); - /* demq: the op(next)==code check is to see if we have - * "branch-branch" AFAICT */ + /* The op(next)==code check below is to see if we + * have "BRANCH-BRANCH", "BRANCHJ-BRANCHJ", "IFTHEN-IFTHEN" + * IFTHEN is special as it might not appear in pairs. + * Not sure whether BRANCH-BRANCHJ is possible, regardless + * we dont handle it cleanly. */ if (OP(next) == code || code == IFTHEN) { /* NOTE - There is similar code to this block below for * handling TRIE nodes on a re-study. If you change stuff here |