summaryrefslogtreecommitdiff
path: root/pcre_study.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-03-27 17:45:29 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-03-27 17:45:29 +0000
commit830417cb79946e957b855d50218d64d74562f47c (patch)
tree161e947d9b2552dfbb79ccc5b87674c8c785a983 /pcre_study.c
parent156c5951245218524c2f59f97eb66a1e48a71eae (diff)
downloadpcre-830417cb79946e957b855d50218d64d74562f47c.tar.gz
Add support for *MARK and names for *PRUNE, *SKIP, *THEN.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@510 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_study.c')
-rw-r--r--pcre_study.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pcre_study.c b/pcre_study.c
index bd00a53..7db319c 100644
--- a/pcre_study.c
+++ b/pcre_study.c
@@ -412,6 +412,15 @@ for (;;)
if (utf8 && cc[-1] >= 0xc0) cc += _pcre_utf8_table4[cc[-1] & 0x3f];
#endif
break;
+
+ /* Skip these, but we need to add in the name length. */
+
+ case OP_MARK:
+ case OP_PRUNE_ARG:
+ case OP_SKIP_ARG:
+ case OP_THEN_ARG:
+ cc += _pcre_OP_lengths[op] + cc[1];
+ break;
/* For the record, these are the opcodes that are matched by "default":
OP_ACCEPT, OP_CLOSE, OP_COMMIT, OP_FAIL, OP_PRUNE, OP_SET_SOM, OP_SKIP,