diff src/regexp.h @ 4553:7b835b2969af v7.3.1024

updated for version 7.3.1024 Problem: New regexp: End of matching pattern not set correctly. (Cesar Romani) Solution: Quit the loop after finding the match. Store nfa_has_zend in the program.
author Bram Moolenaar <bram@vim.org>
date Sun, 26 May 2013 16:57:28 +0200
parents 532c2e850256
children 4d81fdda8f35
line wrap: on
line diff
--- a/src/regexp.h
+++ b/src/regexp.h
@@ -86,6 +86,7 @@ typedef struct
 
     regprog_T		regprog;
     nfa_state_T		*start;
+    int			has_zend;	/* pattern contains \ze */
     int			nstate;
     nfa_state_T		state[0];	/* actually longer.. */
 } nfa_regprog_T;