summaryrefslogtreecommitdiff
path: root/src/regexp.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-08 18:19:48 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-08 18:19:48 +0200
commit473de61b0409f8f8c86585733f099f882122b280 (patch)
tree0c2b031a29a283c70d63368c38031517572d954c /src/regexp.h
parentcd9c46265e4a12cf716187bc8188c7399797f806 (diff)
downloadvim-git-473de61b0409f8f8c86585733f099f882122b280.tar.gz
updated for version 7.3.1149v7.3.1149
Problem: New regexp engine: Matching plain text could be faster. Solution: Detect a plain text match and handle it specifically. Add vim_regfree().
Diffstat (limited to 'src/regexp.h')
-rw-r--r--src/regexp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regexp.h b/src/regexp.h
index 184228213..976927e04 100644
--- a/src/regexp.h
+++ b/src/regexp.h
@@ -89,6 +89,7 @@ typedef struct
int reganch; /* pattern starts with ^ */
int regstart; /* char at start of pattern */
+ char_u *match_text; /* plain text to match with */
int has_zend; /* pattern contains \ze */
int has_backref; /* pattern contains \1 .. \9 */
@@ -147,6 +148,7 @@ typedef struct
struct regengine
{
regprog_T *(*regcomp)(char_u*, int);
+ void (*regfree)(regprog_T *);
int (*regexec)(regmatch_T*, char_u*, colnr_T);
#if defined(FEAT_MODIFY_FNAME) || defined(FEAT_EVAL) \
|| defined(FIND_REPLACE_DIALOG) || defined(PROTO)