summaryrefslogtreecommitdiff
path: root/pcreposix.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-10-03 16:24:08 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-10-03 16:24:08 +0000
commit76fe3debde15d40100e30e13f57e5a0e1594da1c (patch)
treee8bb4c50971074d3d0a82de42c2bd8cb682b9f79 /pcreposix.c
parent80d5ddd534157a15013c2314a4236bdd8ac0b72f (diff)
downloadpcre-76fe3debde15d40100e30e13f57e5a0e1594da1c.tar.gz
Allow duplicate names for same-numbered groups; forbid different names.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@457 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.c')
-rw-r--r--pcreposix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcreposix.c b/pcreposix.c
index 8f9e75f..e51be30 100644
--- a/pcreposix.c
+++ b/pcreposix.c
@@ -141,7 +141,9 @@ static const int eint[] = {
REG_BADPAT, /* number is too big */
REG_BADPAT, /* subpattern name expected */
REG_BADPAT, /* digit expected after (?+ */
- REG_BADPAT /* ] is an invalid data character in JavaScript compatibility mode */
+ REG_BADPAT, /* ] is an invalid data character in JavaScript compatibility mode */
+ /* 65 */
+ REG_BADPAT /* different names for subpatterns of the same number are not allowed */
};
/* Table of texts corresponding to POSIX error codes */