summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-03-17 21:06:10 -0600
committerKarl Williamson <khw@cpan.org>2019-03-18 10:40:15 -0600
commit2abbd513b87245ddb806e6bc4f59945ecb46dced (patch)
tree1b530ee7d9511a1ec1c67dbfc79082e740c5ef4f /regexp.h
parentfd1dd2eb05554dea51a1d125b5dfcea0f028a583 (diff)
downloadperl-2abbd513b87245ddb806e6bc4f59945ecb46dced.tar.gz
Implement variable length lookbehind in regex patterns
See [perl #132367].
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/regexp.h b/regexp.h
index 9d43083a40..45f64e8cdb 100644
--- a/regexp.h
+++ b/regexp.h
@@ -807,6 +807,9 @@ typedef struct regmatch_state {
struct regmatch_state *prev_yes_state;
I32 wanted;
I32 logical; /* saved copy of 'logical' var */
+ U8 count; /* number of beginning positions */
+ char *start;
+ char *end;
regnode *me; /* the IFMATCH/SUSPEND/UNLESSM node */
} ifmatch; /* and SUSPEND/UNLESSM */