summaryrefslogtreecommitdiff
path: root/src/regexp.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-06 18:46:06 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-06 18:46:06 +0200
commitd89616ebb8c0f7c4b96c96f971e2bf9ac944dd44 (patch)
treea4b883dc549c5ef43bf117109adbef4f0d5b7317 /src/regexp.h
parent6d3a5d755a71f6df472c82ed4e619a8497a75f14 (diff)
downloadvim-git-d89616ebb8c0f7c4b96c96f971e2bf9ac944dd44.tar.gz
updated for version 7.3.1133v7.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.
Diffstat (limited to 'src/regexp.h')
-rw-r--r--src/regexp.h4
1 files changed, 4 insertions, 0 deletions
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