diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-12-07 19:32:32 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-12-07 19:32:32 +0000 |
commit | 82893b7b730b740ec045a6d772ad0fc118074c88 (patch) | |
tree | 849880f14a872a99013aa9942cbbd4163db520e6 /testdata | |
parent | 73f8e94ae08a28aad03773b4497be1e83eb12c86 (diff) | |
download | pcre-82893b7b730b740ec045a6d772ad0fc118074c88.tar.gz |
Fix non-diagnosis of (?=a)(?R) (positive lookaheads not skipped when checking
for an empty match).
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@282 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput2 | 8 | ||||
-rw-r--r-- | testdata/testoutput2 | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2 index 9b153dc..32c5ef2 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -2563,4 +2563,12 @@ a random value. /Ix /(?P>)/ +/(?!\w)(?R)/ + +/(?=\w)(?R)/ + +/(?<!\w)(?R)/ + +/(?<=\w)(?R)/ + / End of testinput2 / diff --git a/testdata/testoutput2 b/testdata/testoutput2 index c7ae26f..72ac0af 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -9346,4 +9346,16 @@ Failed: subpattern name expected at offset 4 /(?P>)/ Failed: subpattern name expected at offset 4 +/(?!\w)(?R)/ +Failed: recursive call could loop indefinitely at offset 9 + +/(?=\w)(?R)/ +Failed: recursive call could loop indefinitely at offset 9 + +/(?<!\w)(?R)/ +Failed: recursive call could loop indefinitely at offset 10 + +/(?<=\w)(?R)/ +Failed: recursive call could loop indefinitely at offset 10 + / End of testinput2 / |