summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2014-10-12 23:08:42 +0200
committerYves Orton <demerphq@gmail.com>2014-10-20 00:32:30 +0200
commite60d552100fc966cb2917d32cf2e708d20a6427f (patch)
treed2e36db9c6c25e035bd54705fe13e5c951d387f6 /regcomp.c
parentd615717366f1596d4a1b18ce2ca5a224dc076107 (diff)
downloadperl-e60d552100fc966cb2917d32cf2e708d20a6427f.tar.gz
regcomp.c: study_chunk(): improve branch-branch comment
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 8254ef4e0d..26e95cf258 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -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