diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-05 11:02:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-05 11:02:05 +0200 |
commit | 78eae9aaf7d73ab676d7adecb77765834dccc460 (patch) | |
tree | 9dc6e5833fe075ce3518342c7fcd1757683151b3 | |
parent | 5ebc09b4505b38c0b928c68769e10cda1226a2e4 (diff) | |
download | vim-git-78eae9aaf7d73ab676d7adecb77765834dccc460.tar.gz |
updated for version 7.3.1116v7.3.1116
Problem: Can't build without Visual mode.
Solution: Add #ifdefs.
-rw-r--r-- | src/regexp_nfa.c | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 4ad3191a1..0e804c2ee 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -181,7 +181,9 @@ enum NFA_MARK, /* Match mark */ NFA_MARK_GT, /* Match > mark */ NFA_MARK_LT, /* Match < mark */ +#ifdef FEAT_VISUAL NFA_VISUAL, /* Match Visual area */ +#endif NFA_FIRST_NL = NFA_ANY + ADD_NL, NFA_LAST_NL = NFA_NUPPER + ADD_NL, @@ -963,9 +965,11 @@ nfa_regatom() EMIT(NFA_CURSOR); break; +#ifdef FEAT_VISUAL case 'V': EMIT(NFA_VISUAL); break; +#endif case '[': /* 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_LT: STRCPY(code, "NFA_MARK_LT "); break; case NFA_CURSOR: STRCPY(code, "NFA_CURSOR "); break; +#ifdef FEAT_VISUAL case NFA_VISUAL: STRCPY(code, "NFA_VISUAL "); break; +#endif case NFA_STAR: STRCPY(code, "NFA_STAR "); break; case NFA_STAR_NONGREEDY: STRCPY(code, "NFA_STAR_NONGREEDY "); break; @@ -4790,12 +4796,14 @@ nfa_regmatch(prog, start, submatch, m) t->pim, &listidx); break; +#ifdef FEAT_VISUAL case NFA_VISUAL: result = reg_match_visual(); if (result) addstate_here(thislist, t->state->out, &t->subs, t->pim, &listidx); break; +#endif default: /* regular character */ { diff --git a/src/version.c b/src/version.c index cf536b8de..3677adcf2 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1116, +/**/ 1115, /**/ 1114, |