summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-04 16:38:05 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-04 16:38:05 +0000
commit81c06c3725f4e173b64711b722b645efc206665d (patch)
treefa18759451292c297ce3a411a53773a843ad604a /HACKING
parentb77d63d3165d1678324a4bf4531fb881103f6012 (diff)
downloadpcre-81c06c3725f4e173b64711b722b645efc206665d.tar.gz
Make (*THEN) work as in Perl in subpatterns that do not contain | alternatives.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@716 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING21
1 files changed, 9 insertions, 12 deletions
diff --git a/HACKING b/HACKING
index 3b39721..bc92560 100644
--- a/HACKING
+++ b/HACKING
@@ -178,17 +178,14 @@ These items are all just one byte long
OP_SKIP ) indicating which parentheses must be closed.
-Backtracking control verbs with data
-------------------------------------
-
-OP_THEN is followed by a LINK_SIZE offset, which is the distance back to the
-start of the current branch.
-
-OP_MARK is followed by the mark name, preceded by a one-byte length, and
-followed by a binary zero. For (*PRUNE), (*SKIP), and (*THEN) with arguments,
-the opcodes OP_PRUNE_ARG, OP_SKIP_ARG, and OP_THEN_ARG are used. For the first
-two, the name follows immediately; for OP_THEN_ARG, it follows the LINK_SIZE
-offset value.
+Backtracking control verbs with (optional) data
+-----------------------------------------------
+
+(*THEN) without an argument generates the opcode OP_THEN and no following data.
+OP_MARK is followed by the mark name, preceded by a one-byte length, and
+followed by a binary zero. For (*PRUNE), (*SKIP), and (*THEN) with arguments,
+the opcodes OP_PRUNE_ARG, OP_SKIP_ARG, and OP_THEN_ARG are used, with the name
+following in the same format.
Matching literal characters
@@ -453,4 +450,4 @@ next item.
Philip Hazel
-August 2011
+October 2011