summaryrefslogtreecommitdiff
path: root/regcomp.sym
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 /regcomp.sym
parentfd1dd2eb05554dea51a1d125b5dfcea0f028a583 (diff)
downloadperl-2abbd513b87245ddb806e6bc4f59945ecb46dced.tar.gz
Implement variable length lookbehind in regex patterns
See [perl #132367].
Diffstat (limited to 'regcomp.sym')
-rw-r--r--regcomp.sym4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.sym b/regcomp.sym
index 4b9a42c338..11cf43f429 100644
--- a/regcomp.sym
+++ b/regcomp.sym
@@ -177,8 +177,8 @@ LONGJMP LONGJMP, off 1 . 1 ; Jump far away.
BRANCHJ BRANCHJ, off 1 V 1 ; BRANCH with long offset.
#*Special Case Regops
-IFMATCH BRANCHJ, off 1 . 1 ; Succeeds if the following matches; non-zero flags "f" means lookbehind assertion starting "f" characters before current
-UNLESSM BRANCHJ, off 1 . 1 ; Fails if the following matches; non-zero flags "f" means lookbehind assertion starting "f" characters before current
+IFMATCH BRANCHJ, off 1 . 1 ; Succeeds if the following matches; non-zero flags "f", next_off "o" means lookbehind assertion starting "f..(f-o)" characters before current
+UNLESSM BRANCHJ, off 1 . 1 ; Fails if the following matches; non-zero flags "f", next_off "o" means lookbehind assertion starting "f..(f-o)" characters before current
SUSPEND BRANCHJ, off 1 V 1 ; "Independent" sub-RE.
IFTHEN BRANCHJ, off 1 V 1 ; Switch, should be preceded by switcher.
GROUPP GROUPP, num 1 ; Whether the group matched.