diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-12-15 17:01:46 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-12-15 17:01:46 +0000 |
commit | 27e5192041ef241b4d3f559d067b81e431698a63 (patch) | |
tree | 4a200701fed4bb54c6c7ebd0893b3757ad12b423 /pcre_compile.c | |
parent | f858acaa28833742f9b2ada7642d8776b98f0689 (diff) | |
download | pcre-27e5192041ef241b4d3f559d067b81e431698a63.tar.gz |
Final file tidies for 8.34.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1412 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r-- | pcre_compile.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pcre_compile.c b/pcre_compile.c index f872694..c170c47 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -260,17 +260,17 @@ static const verbitem verbs[] = { static const int verbcount = sizeof(verbs)/sizeof(verbitem); -/* Substitutes for [[:<:]] and [[:>:]], which mean start and end of word in +/* Substitutes for [[:<:]] and [[:>:]], which mean start and end of word in another regex library. */ static const pcre_uchar sub_start_of_word[] = { CHAR_BACKSLASH, CHAR_b, CHAR_LEFT_PARENTHESIS, CHAR_QUESTION_MARK, - CHAR_EQUALS_SIGN, CHAR_BACKSLASH, CHAR_w, CHAR_RIGHT_PARENTHESIS, '\0' }; + CHAR_EQUALS_SIGN, CHAR_BACKSLASH, CHAR_w, CHAR_RIGHT_PARENTHESIS, '\0' }; static const pcre_uchar sub_end_of_word[] = { CHAR_BACKSLASH, CHAR_b, CHAR_LEFT_PARENTHESIS, CHAR_QUESTION_MARK, CHAR_LESS_THAN_SIGN, CHAR_EQUALS_SIGN, CHAR_BACKSLASH, CHAR_w, - CHAR_RIGHT_PARENTHESIS, '\0' }; + CHAR_RIGHT_PARENTHESIS, '\0' }; /* Tables of names of POSIX character classes and their lengths. The names are @@ -4703,8 +4703,8 @@ for (;; ptr++) goto FAILED; } goto NORMAL_CHAR; - - /* In another (POSIX) regex library, the ugly syntax [[:<:]] and [[:>:]] is + + /* In another (POSIX) regex library, the ugly syntax [[:<:]] and [[:>:]] is used for "start of word" and "end of word". As these are otherwise illegal sequences, we don't break anything by recognizing them. They are replaced by \b(?=\w) and \b(?<=\w) respectively. Sequences like [a[:<:]] are @@ -4715,18 +4715,18 @@ for (;; ptr++) { nestptr = ptr + 7; ptr = sub_start_of_word - 1; - continue; - } + continue; + } if (STRNCMP_UC_C8(ptr+1, STRING_WEIRD_ENDWORD, 6) == 0) { nestptr = ptr + 7; ptr = sub_end_of_word - 1; - continue; - } + continue; + } /* Handle a real character class. */ - + previous = code; /* PCRE supports POSIX class stuff inside a class. Perl gives an error if |