1
0
forked from aniani/vim

updated for version 7.3.1116

Problem:    Can't build without Visual mode.
Solution:   Add #ifdefs.
This commit is contained in:
Bram Moolenaar
2013-06-05 11:02:05 +02:00
parent 5ebc09b450
commit 78eae9aaf7
2 changed files with 10 additions and 0 deletions

View File

@@ -181,7 +181,9 @@ enum
NFA_MARK, /* Match mark */ NFA_MARK, /* Match mark */
NFA_MARK_GT, /* Match > mark */ NFA_MARK_GT, /* Match > mark */
NFA_MARK_LT, /* Match < mark */ NFA_MARK_LT, /* Match < mark */
#ifdef FEAT_VISUAL
NFA_VISUAL, /* Match Visual area */ NFA_VISUAL, /* Match Visual area */
#endif
NFA_FIRST_NL = NFA_ANY + ADD_NL, NFA_FIRST_NL = NFA_ANY + ADD_NL,
NFA_LAST_NL = NFA_NUPPER + ADD_NL, NFA_LAST_NL = NFA_NUPPER + ADD_NL,
@@ -963,9 +965,11 @@ nfa_regatom()
EMIT(NFA_CURSOR); EMIT(NFA_CURSOR);
break; break;
#ifdef FEAT_VISUAL
case 'V': case 'V':
EMIT(NFA_VISUAL); EMIT(NFA_VISUAL);
break; break;
#endif
case '[': case '[':
/* TODO: \%[abc] not supported yet */ /* TODO: \%[abc] not supported yet */
@@ -1955,7 +1959,9 @@ nfa_set_code(c)
case NFA_MARK_GT: STRCPY(code, "NFA_MARK_GT "); break; case NFA_MARK_GT: STRCPY(code, "NFA_MARK_GT "); break;
case NFA_MARK_LT: STRCPY(code, "NFA_MARK_LT "); break; case NFA_MARK_LT: STRCPY(code, "NFA_MARK_LT "); break;
case NFA_CURSOR: STRCPY(code, "NFA_CURSOR "); break; case NFA_CURSOR: STRCPY(code, "NFA_CURSOR "); break;
#ifdef FEAT_VISUAL
case NFA_VISUAL: STRCPY(code, "NFA_VISUAL "); break; case NFA_VISUAL: STRCPY(code, "NFA_VISUAL "); break;
#endif
case NFA_STAR: STRCPY(code, "NFA_STAR "); break; case NFA_STAR: STRCPY(code, "NFA_STAR "); break;
case NFA_STAR_NONGREEDY: STRCPY(code, "NFA_STAR_NONGREEDY "); break; case NFA_STAR_NONGREEDY: STRCPY(code, "NFA_STAR_NONGREEDY "); break;
@@ -4790,12 +4796,14 @@ nfa_regmatch(prog, start, submatch, m)
t->pim, &listidx); t->pim, &listidx);
break; break;
#ifdef FEAT_VISUAL
case NFA_VISUAL: case NFA_VISUAL:
result = reg_match_visual(); result = reg_match_visual();
if (result) if (result)
addstate_here(thislist, t->state->out, &t->subs, addstate_here(thislist, t->state->out, &t->subs,
t->pim, &listidx); t->pim, &listidx);
break; break;
#endif
default: /* regular character */ default: /* regular character */
{ {

View File

@@ -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 */
/**/
1116,
/**/ /**/
1115, 1115,
/**/ /**/