summaryrefslogtreecommitdiff
path: root/pcreposix.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-05-09 14:48:28 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-05-09 14:48:28 +0000
commitfcde8e6080d98b4fee23600b0e59b5179af250c3 (patch)
tree0d67f4337c932fe0e88fdb75597a6a375f6d07eb /pcreposix.c
parent71cf6597fa7987b2d1920c99f69c5ed4b0497826 (diff)
downloadpcre-fcde8e6080d98b4fee23600b0e59b5179af250c3.tar.gz
Add (?-n) and (?+n) relative references.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@166 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.c')
-rw-r--r--pcreposix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcreposix.c b/pcreposix.c
index 2670346..8582fba 100644
--- a/pcreposix.c
+++ b/pcreposix.c
@@ -80,7 +80,7 @@ static const int eint[] = {
REG_BADPAT, /* malformed number or name after (?( */
REG_BADPAT, /* conditional group contains more than two branches */
REG_BADPAT, /* assertion expected after (?( */
- REG_BADPAT, /* (?R or (?digits must be followed by ) */
+ REG_BADPAT, /* (?R or (?[+-]digits must be followed by ) */
REG_ECTYPE, /* unknown POSIX class name */
REG_BADPAT, /* POSIX collating elements are not supported */
REG_INVARG, /* this version of PCRE is not compiled with PCRE_UTF8 support */
@@ -108,7 +108,8 @@ static const int eint[] = {
REG_BADPAT, /* DEFINE group contains more than one branch */
REG_BADPAT, /* repeating a DEFINE group is not allowed */
REG_INVARG, /* inconsistent NEWLINE options */
- REG_BADPAT /* \g is not followed followed by an (optionally braced) non-zero number */
+ REG_BADPAT, /* \g is not followed followed by an (optionally braced) non-zero number */
+ REG_BADPAT /* (?+ or (?- must be followed by a non-zero number */
};
/* Table of texts corresponding to POSIX error codes */