Philip.Hazel
5652d41209
Fix delimiters in tests 1 and 4 for correct Perl behaviour (Bugzilla #2641 ).
...
Also move \K in lookaround tests to test 2 (Perl no longer supports).
2020-09-13 15:56:32 +00:00
Philip.Hazel
3be538015b
Fix bad lookbehind compilation when preceded by a DEFINE group.
2020-02-24 17:29:00 +00:00
Philip.Hazel
3a6b4948d1
Fix bug in processing (?(DEFINE)...) within lookbehind assertions.
2020-01-26 15:31:27 +00:00
Philip.Hazel
03720de840
Documentation update and another cunning test pattern.
2020-01-05 12:32:29 +00:00
Philip.Hazel
5ba5230b82
Allow real repetition of assertions.
2020-01-01 12:07:02 +00:00
Philip.Hazel
0a2033f0f7
Remove atomic restriction on capture groups containing recursive back
...
references, as since 10.30 it has been unnecessary.
2019-12-18 16:16:12 +00:00
Philip.Hazel
45b219e6bc
Fix bug introduced in commit 1133. Lookbehinds that follow a condition were not
...
always properly handled.
2019-08-26 16:28:26 +00:00
Philip.Hazel
630e4bb516
Fix typo in test data comment.
2019-08-01 16:42:36 +00:00
Philip.Hazel
046c5cd21c
Fix lookbehind within lookahead within lookbehind misbehaviour bug.
2019-07-16 15:06:21 +00:00
Philip.Hazel
8eb01ad8a9
Typo in doc and update tests
2019-06-20 16:37:30 +00:00
Philip.Hazel
da5155fed3
Don't ignore {1}+ when it is applied to a parenthesized item.
2019-06-19 16:27:50 +00:00
Philip.Hazel
49f174ef78
Make pcre2_match() return (*MARK) names from successful conditional assertions,
...
as Perl and the JIT do.
2019-06-13 16:49:40 +00:00
Philip.Hazel
996892434f
Fix zero-repeated subroutine call at start of pattern bug, which recorded an
...
incorrect first code unit.
2018-10-20 09:28:02 +00:00
Philip.Hazel
f26b0b0bae
Implement Perl 5.28's alphabetic lookaround syntax, e.g. (*pla:...) and also
...
(*atomic:...).
2018-09-24 16:23:53 +00:00
Philip.Hazel
9332d4be69
Fix dynamic options changing bug.
2018-08-04 08:20:18 +00:00
Philip.Hazel
b196143523
Make /x more Perl-compatible by recognizing all of Unicode's "Pattern White
...
Space" characters, not just the ASCII ones.
2018-08-03 09:38:36 +00:00
Philip.Hazel
6e245572b8
Add support for (?^) as now supported by Perl.
2018-07-28 16:23:24 +00:00
Philip.Hazel
775481293a
Add more tests for further ClusterFuzz issues, all were fixed by the previous
...
patch; they just crashed in different ways. The fixed issues are ClusterFuzz
numbers 9522, 9534, 9535, 9541, 9542. The bug was a new one, introduced by a
recent code update (never in a release).
2018-07-22 15:43:00 +00:00
Philip.Hazel
7d97c226c7
Fix oversight in recent OP_COMMIT_ARG update.
2018-07-22 15:19:43 +00:00
Philip.Hazel
192b82cf6e
Allow :NAME on (*ACCEPT), (*FAIL), and (*COMMIT) and fix bug with (*MARK)
...
followed by (*ACCEPT) in an assertion. More small updates to perltest.sh.
2018-07-21 14:34:51 +00:00
Philip.Hazel
666e94cd59
Fixed atomic group backtracking bug.
2018-07-16 15:24:32 +00:00
Philip.Hazel
a0e367f5b6
Update Perl tester to allow for optimization to be turned off. Required moving
...
some tests out of the Perl-compatible files.
2018-07-14 16:16:51 +00:00
Philip.Hazel
7db5904b9f
Documentation and tests update and minor tweak to perltest.sh.
2018-07-12 17:04:43 +00:00
Philip.Hazel
b2294373d7
Ignore qualifiers on lookaheads within lookbehinds when checking for a fixed
...
length.
2018-07-02 11:23:45 +00:00
Philip.Hazel
1c79bdf36f
Fix global search/replace in pcre2test and pcre2_substitute() when the pattern
...
matches an empty string, but never at the starting offset.
2018-07-02 10:54:03 +00:00
Philip.Hazel
53a588431c
Fix auto-possessification bug at the end of a capturing group that is called
...
recursively.
2018-01-31 17:53:56 +00:00
Philip.Hazel
36366914f5
Fix oss-fuzz bugs 3852 and 3891 (same bug); mis-closing external captures by
...
*ACCEPT inside assertions.
2017-10-29 16:58:38 +00:00
Philip.Hazel
4d82a61d47
Hyphen at the end of a character class is always literal. Give error for false
...
range after \d etc.
2017-07-29 15:54:04 +00:00
Philip.Hazel
0ba5272960
Fix bug in /xx implementation.
2017-07-25 15:27:30 +00:00
Philip.Hazel
810d9b6da5
Code tidies for 10.30-RC1 release candidate.
2017-07-19 16:04:15 +00:00
Philip.Hazel
6e30ed1b40
Add subject_literal and allow jitstack in pcre2test pattern modifiers, and add
...
another big pattern test.
2017-06-12 17:48:03 +00:00
Philip.Hazel
05a8186117
Add a fancy test for multiple named subpatterns.
2017-04-22 14:35:14 +00:00
Philip.Hazel
202cb2cf41
Improve testing coverage with updates to pcre2test and test files; also get rid
...
of redundant code in pcre2_match().
2017-04-16 13:03:30 +00:00
Philip.Hazel
fcd0c39b26
Fix capturing in conditional negative assertions ended with (*ACCEPT).
2017-04-03 18:02:07 +00:00
Philip.Hazel
39d9294d14
Move some tests back into test 1 now that JIT has been updated.
2017-03-24 18:40:15 +00:00
Philip.Hazel
20804215a8
Code for new interpreter (build system and documentation still to be done).
2017-03-09 16:23:28 +00:00
Philip.Hazel
7ab91fdfb2
Reduce recursion limit for auto-possessify to reduce stack usage at compile
...
time. Fixes oss-fuzz issue 553.
2017-02-08 17:03:30 +00:00
Philip.Hazel
1226e2e0d0
Fix hyphen after \E after POSIX class causing an error.
2017-01-11 16:40:35 +00:00
Philip.Hazel
3df9674c4e
Fix name table sort buffer overflow.
2016-12-21 17:09:11 +00:00
Philip.Hazel
a98121a212
Fix caseless minimizing back reference bug when heap in use for recursion.
2016-12-10 14:59:24 +00:00
Philip.Hazel
4fd8feaa50
Fix auto-anchor bug when .* is inside an assertion.
2016-11-01 15:58:28 +00:00
Philip.Hazel
a22c5e4204
Fix optimization bugs when pattern starts with lookahead.
2016-10-18 11:22:40 +00:00
Philip.Hazel
99264dfc23
Major refactoring of pcre2_compile.c; see ChangeLog and HACKING.
2016-10-02 16:01:01 +00:00
Philip.Hazel
be7366f6f0
Tidied up a lot of comments in the test files.
2015-09-16 16:49:48 +00:00
Philip.Hazel
bb68c64c40
Implement #newline_default and adjust testdata and scripts to use it.
2015-09-08 17:01:17 +00:00
Philip.Hazel
76a2e62669
Maintenance on tests for Perl compatibility
2015-08-03 17:25:55 +00:00
Philip.Hazel
3e12e15fe1
Fix incorrect minimum matching length when pattern contains (?| groups.
2015-08-03 13:18:49 +00:00
Philip.Hazel
6f94ece67d
Fix forward reference by name to duplicate group number bug.
2015-05-16 11:01:48 +00:00
Philip.Hazel
e653c5f142
Re-do previous patch and fix new forward-reference-with-quantification bugs.
2015-05-06 16:51:25 +00:00
Philip.Hazel
4d35b44b43
Fix compatibility issues for \8 and \9.
2015-04-23 17:28:39 +00:00