mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
updated for version 7.3.989
Problem: New regexp engine compares negative numbers to character. Solution: Add missing case statements.
This commit is contained in:
parent
66e83d7db0
commit
12e4014092
@ -3383,8 +3383,30 @@ again:
|
|||||||
ADD_POS_NEG_STATE(t->state);
|
ADD_POS_NEG_STATE(t->state);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case NFA_MOPEN + 0:
|
||||||
|
case NFA_MOPEN + 1:
|
||||||
|
case NFA_MOPEN + 2:
|
||||||
|
case NFA_MOPEN + 3:
|
||||||
|
case NFA_MOPEN + 4:
|
||||||
|
case NFA_MOPEN + 5:
|
||||||
|
case NFA_MOPEN + 6:
|
||||||
|
case NFA_MOPEN + 7:
|
||||||
|
case NFA_MOPEN + 8:
|
||||||
|
case NFA_MOPEN + 9:
|
||||||
|
/* handled below */
|
||||||
|
break;
|
||||||
|
|
||||||
|
case NFA_SKIP_CHAR:
|
||||||
|
case NFA_ZSTART:
|
||||||
|
/* TODO: should not happen? */
|
||||||
|
break;
|
||||||
|
|
||||||
default: /* regular character */
|
default: /* regular character */
|
||||||
|
/* TODO: put this in #ifdef later */
|
||||||
|
if (t->state->c < -256)
|
||||||
|
EMSGN("INTERNAL: Negative state char: %ld", t->state->c);
|
||||||
result = (no_Magic(t->state->c) == c);
|
result = (no_Magic(t->state->c) == c);
|
||||||
|
|
||||||
if (!result)
|
if (!result)
|
||||||
result = ireg_ic == TRUE
|
result = ireg_ic == TRUE
|
||||||
&& MB_TOLOWER(t->state->c) == MB_TOLOWER(c);
|
&& MB_TOLOWER(t->state->c) == MB_TOLOWER(c);
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
989,
|
||||||
/**/
|
/**/
|
||||||
988,
|
988,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user