]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.1006 v7.3.1006
authorBram Moolenaar <Bram@vim.org>
Thu, 23 May 2013 20:25:15 +0000 (22:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 May 2013 20:25:15 +0000 (22:25 +0200)
Problem:    NFA engine not used for "\_[0-9]".
Solution:   Enable this, fixed in patch 1005.

src/regexp_nfa.c
src/version.c

index 0bbed878fc88c243b44579d090fb57fefe2eec64..157d3ebad5134f2b61381cdb9ce9f6c45b3010ca 100644 (file)
@@ -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.
index b7c1ddfe7d7776f335618cf7249c6a1549f893bc..b8835be3b77f28037d523271cfc8476bdd0b915d 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1006,
 /**/
     1005,
 /**/