commit | 57a285b105478be7bff338d8ae7847b40f58434a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun May 26 16:57:28 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun May 26 16:57:28 2013 +0200 |
tree | 3d7a3e00a28acade65e115c80a9cf41cbfcb66f7 | |
parent | 3451d662447cf0e78ebd55320d26791f228123f2 [diff] [blame] |
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.
diff --git a/src/regexp.h b/src/regexp.h index 88f9cfb..3b698a3 100644 --- a/src/regexp.h +++ b/src/regexp.h
@@ -86,6 +86,7 @@ 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;