diff src/regexp_nfa.c @ 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 90e9917d4114
children 36ddcf4cecbc
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.