0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.1133

Problem:    New regexp engine is a bit slow.
Solution:   Skip ahead to a character that must match.  Don't try matching a
            "^" patter past the start of line.
This commit is contained in:
Bram Moolenaar
2013-06-06 18:46:06 +02:00
parent 6d3a5d755a
commit d89616ebb8
3 changed files with 199 additions and 7 deletions

View File

@@ -87,6 +87,10 @@ typedef struct
unsigned regflags;
nfa_state_T *start; /* points into state[] */
int reganch; /* pattern starts with ^ */
int regstart; /* char at start of pattern */
int has_zend; /* pattern contains \ze */
int has_backref; /* pattern contains \1 .. \9 */
#ifdef FEAT_SYN_HL