mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user