diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2014-06-18 16:48:57 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2014-06-18 16:48:57 +0000 |
commit | 4d22b1ee5e92dbd075967491d8ec2d386f394bcf (patch) | |
tree | 22a952a546dfecbdbcb00ccf564502c7e56b4626 /pcre_study.c | |
parent | 35f4457ba4dadc0839df9275adf1fd14e15c28fa (diff) | |
download | pcre-4d22b1ee5e92dbd075967491d8ec2d386f394bcf.tar.gz |
Fix not including VT in starting characters for \s.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1486 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_study.c')
-rw-r--r-- | pcre_study.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/pcre_study.c b/pcre_study.c index ab9510e..cb6c424 100644 --- a/pcre_study.c +++ b/pcre_study.c @@ -1106,24 +1106,17 @@ do try_next = FALSE; break; - /* The cbit_space table has vertical tab as whitespace; we have to - ensure it is set as not whitespace. Luckily, the code value is the same - (0x0b) in ASCII and EBCDIC, so we can just adjust the appropriate bit. */ + /* The cbit_space table has vertical tab as whitespace; we no longer + have to play fancy tricks because Perl added VT to its whitespace at + release 5.18. PCRE added it at release 8.34. */ case OP_NOT_WHITESPACE: set_nottype_bits(start_bits, cbit_space, table_limit, cd); - start_bits[1] |= 0x08; try_next = FALSE; break; - /* The cbit_space table has vertical tab as whitespace; we have to not - set it from the table. Luckily, the code value is the same (0x0b) in - ASCII and EBCDIC, so we can just adjust the appropriate bit. */ - case OP_WHITESPACE: - c = start_bits[1]; /* Save in case it was already set */ set_type_bits(start_bits, cbit_space, table_limit, cd); - start_bits[1] = (start_bits[1] & ~0x08) | c; try_next = FALSE; break; |