changeset 4517:9a2183bd8295 v7.3.1006

updated for version 7.3.1006 Problem: NFA engine not used for "\_[0-9]". Solution: Enable this, fixed in patch 1005.
author Bram Moolenaar <bram@vim.org>
date Thu, 23 May 2013 22:25:15 +0200
parents 05b791824368
children bdf9316997bb
files src/regexp_nfa.c src/version.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -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.
--- 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 */
 /**/
+    1006,
+/**/
     1005,
 /**/
     1004,