forked from aniani/vim
updated for version 7.3.1006
Problem: NFA engine not used for "\_[0-9]". Solution: Enable this, fixed in patch 1005.
This commit is contained in:
@@ -679,9 +679,7 @@ nfa_regatom()
|
||||
|
||||
/* "\_[" is collection plus newline */
|
||||
if (c == '[')
|
||||
/* TODO: make this work
|
||||
* goto collection; */
|
||||
return FAIL;
|
||||
goto collection;
|
||||
|
||||
/* "\_x" is character class plus newline */
|
||||
/*FALLTHROUGH*/
|
||||
@@ -891,8 +889,8 @@ nfa_regatom()
|
||||
}
|
||||
break;
|
||||
|
||||
/* collection: */
|
||||
case Magic('['):
|
||||
collection:
|
||||
/*
|
||||
* Glue is emitted between several atoms from the [].
|
||||
* It is either NFA_OR, or NFA_CONCAT.
|
||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1006,
|
||||
/**/
|
||||
1005,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user