Fix typo introduced by ChangeLog 107.

This commit is contained in:
Philip.Hazel 2015-12-04 14:34:35 +00:00
parent a7c9027ae6
commit 38caadff03
3 changed files with 14 additions and 9 deletions

View File

@ -5058,26 +5058,26 @@ for (;; ptr++)
if ((options & PCRE2_EXTENDED) != 0) if ((options & PCRE2_EXTENDED) != 0)
{ {
PCRE2_SPTR p = ptr + 1; ptr++;
for (;;) for (;;)
{ {
while (MAX_255(*p) && (cb->ctypes[*p] & ctype_space) != 0) p++; while (MAX_255(*ptr) && (cb->ctypes[*ptr] & ctype_space) != 0) ptr++;
if (*p != CHAR_NUMBER_SIGN) break; if (*ptr != CHAR_NUMBER_SIGN) break;
p++; ptr++;
while (ptr < cb->end_pattern) while (ptr < cb->end_pattern)
{ {
if (IS_NEWLINE(p)) /* For non-fixed-length newline cases, */ if (IS_NEWLINE(ptr)) /* For non-fixed-length newline cases, */
{ /* IS_NEWLINE sets cb->nllen. */ { /* IS_NEWLINE sets cb->nllen. */
p += cb->nllen; ptr += cb->nllen;
break; break;
} }
p++; ptr++;
#ifdef SUPPORT_UNICODE #ifdef SUPPORT_UNICODE
if (utf) FORWARDCHAR(p); if (utf) FORWARDCHAR(ptr);
#endif #endif
} /* Loop for comment characters */ } /* Loop for comment characters */
} /* Loop for multiple comments */ } /* Loop for multiple comments */
ptr = p - 1; /* Character before the next significant one. */ ptr--; /* Last code unit of previous character. */
} }
/* If the next character is '+', we have a possessive quantifier. This /* If the next character is '+', we have a possessive quantifier. This

2
testdata/testinput5 vendored
View File

@ -1716,4 +1716,6 @@
/L(?#(|++<!(2)?/B,utf,ucp,auto_callout /L(?#(|++<!(2)?/B,utf,ucp,auto_callout
/(*UTF)C\x09((?<!'(?x)!*H? #\xcc\x9a[^$]/
# End of testinput5 # End of testinput5

View File

@ -4166,4 +4166,7 @@ No match
End End
------------------------------------------------------------------ ------------------------------------------------------------------
/(*UTF)C\x09((?<!'(?x)!*H? #\xcc\x9a[^$]/
Failed: error 114 at offset 39: missing closing parenthesis
# End of testinput5 # End of testinput5