summaryrefslogtreecommitdiff
path: root/testdata/testinput2
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2016-10-02 16:01:01 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2016-10-02 16:01:01 +0000
commitc22979ba3394fd75ae70dad34c67ebd19a50bf79 (patch)
tree65714e8410c56464a95d28415ff42fc55bce8356 /testdata/testinput2
parent143f7f5c4dabd978117d415d2016c7595a7b9867 (diff)
downloadpcre2-c22979ba3394fd75ae70dad34c67ebd19a50bf79.tar.gz
Major refactoring of pcre2_compile.c; see ChangeLog and HACKING.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@555 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testinput2')
-rw-r--r--testdata/testinput273
1 files changed, 71 insertions, 2 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index 9d0759f..dd9faff 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -189,9 +189,9 @@
the barfoo
and cattlefoo
-/(?<=a+)b/
+/abc(?<=a+)b/
-/(?<=aaa|b{0,3})b/
+/12345(?<=aaa|b{0,3})b/
/(?<!(foo)a\1)bar/
@@ -4518,6 +4518,18 @@
\ B)x/x,alt_verbnames,mark
x
+/(*: A \ and #comment
+ \ B)x/alt_verbnames,mark
+ x
+
+/(*: A \ and #comment
+ \ B)x/x,mark
+ x
+
+/(*: A \ and #comment
+ \ B)x/mark
+ x
+
/(*:A
B)x/alt_verbnames,mark
x
@@ -4819,4 +4831,61 @@ a)"xI
/\[AB]{6000000000000000000000}/expand
+# Hex uses pattern length, not zero-terminated. This tests for overrunning
+# the given length of a pattern.
+
+/'(*U'/hex
+
+/'(*'/hex
+
+/'('/hex
+
+//hex
+
+# These tests are here because Perl never allows a back reference in a
+# lookbehind. PCRE2 supports some limited cases.
+
+/([ab])...(?<=\1)z/
+ a11az
+ b11bz
+\= Expect no match
+ b11az
+
+/(?|([ab]))...(?<=\1)z/
+
+/([ab])(\1)...(?<=\2)z/
+ aa11az
+
+/(a\2)(b\1)(?<=\2)/
+
+/(?<A>[ab])...(?<=\k'A')z/
+ a11az
+ b11bz
+\= Expect no match
+ b11az
+
+/(?<A>[ab])...(?<=\k'A')(?<A>)z/dupnames
+
+# Perl does not support \g+n
+
+/((\g+1X)?([ab]))+/
+ aaXbbXa
+
+/ab(?C1)c/auto_callout
+ abc
+
+/'ab(?C1)c'/hex,auto_callout
+ abc
+
+# Perl accepts these, but gives a warning. We can't warn, so give an error.
+
+/[a-[:digit:]]+/
+ a-a9-a
+
+/[A-[:digit:]]+/
+ A-A9-A
+
+/[a-\d]+/
+ a-a9-a
+
# End of testinput2