]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1125 v7.3.1125
authorBram Moolenaar <Bram@vim.org>
Wed, 5 Jun 2013 19:10:59 +0000 (21:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 Jun 2013 19:10:59 +0000 (21:10 +0200)
Problem:    Error for using \%V in a pattern in tiny Vim.
Solution:   Allow using \%V but never match. (Dominique Pelle)

src/regexp_nfa.c
src/version.c

index e7db49930d1c82edb71183457e4e79106479bec0..947b2e725cd712107f5290e4b8642f7935229db1 100644 (file)
@@ -184,9 +184,7 @@ 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,11 +961,9 @@ nfa_regatom()
                    EMIT(NFA_CURSOR);
                    break;
 
-#ifdef FEAT_VISUAL
                case 'V':
                    EMIT(NFA_VISUAL);
                    break;
-#endif
 
                case '[':
                    {
@@ -1976,9 +1972,7 @@ 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;
@@ -4093,9 +4087,7 @@ failure_chance(state, depth)
        case NFA_VCOL_LT:
        case NFA_MARK_GT:
        case NFA_MARK_LT:
-#ifdef FEAT_VISUAL
        case NFA_VISUAL:
-#endif
            /* before/after positions don't match very often */
            return 85;
 
@@ -5036,14 +5028,14 @@ nfa_regmatch(prog, start, submatch, m)
                                                            t->pim, &listidx);
                break;
 
-#ifdef FEAT_VISUAL
            case NFA_VISUAL:
+#ifdef FEAT_VISUAL
                result = reg_match_visual();
                if (result)
                    addstate_here(thislist, t->state->out, &t->subs,
                                                            t->pim, &listidx);
-               break;
 #endif
+               break;
 
            default:    /* regular character */
              {
index 40f3df861718b49fc8d5512478a732adcd621519..bd19cfdc734a87263da204c6f54859ff69ef0f00 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1125,
 /**/
     1124,
 /**/