From e60d552100fc966cb2917d32cf2e708d20a6427f Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sun, 12 Oct 2014 23:08:42 +0200 Subject: regcomp.c: study_chunk(): improve branch-branch comment --- regcomp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'regcomp.c') 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 -- cgit v1.2.1