From d89616ebb8c0f7c4b96c96f971e2bf9ac944dd44 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 6 Jun 2013 18:46:06 +0200 Subject: 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. --- src/regexp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/regexp.h') diff --git a/src/regexp.h b/src/regexp.h index 4841cd34f..9fcd48a4b 100644 --- a/src/regexp.h +++ b/src/regexp.h @@ -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 -- cgit v1.2.1