comparison src/regexp.h @ 4772:03375ccf28a2 v7.3.1133

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.
author Bram Moolenaar <bram@vim.org>
date Thu, 06 Jun 2013 18:46:06 +0200
parents ec72bb4a0fc2
children 3b5a023a4543
comparison
equal deleted inserted replaced
4771:0a18b6f516b2 4772:03375ccf28a2
85 /* These two members implement regprog_T */ 85 /* These two members implement regprog_T */
86 regengine_T *engine; 86 regengine_T *engine;
87 unsigned regflags; 87 unsigned regflags;
88 88
89 nfa_state_T *start; /* points into state[] */ 89 nfa_state_T *start; /* points into state[] */
90
91 int reganch; /* pattern starts with ^ */
92 int regstart; /* char at start of pattern */
93
90 int has_zend; /* pattern contains \ze */ 94 int has_zend; /* pattern contains \ze */
91 int has_backref; /* pattern contains \1 .. \9 */ 95 int has_backref; /* pattern contains \1 .. \9 */
92 #ifdef FEAT_SYN_HL 96 #ifdef FEAT_SYN_HL
93 int reghasz; 97 int reghasz;
94 #endif 98 #endif