Mercurial > vim
changeset 14169:42a9178374d1 v8.1.0102
patch 8.1.0102: cannot build without syntax highlighting
commit https://github.com/vim/vim/commit/1f8c469fe22adf7b42843c3abf118ed339e6da0e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 23 15:09:10 2018 +0200
patch 8.1.0102: cannot build without syntax highlighting
Problem: Cannot build without syntax highlighting.
Solution: Add #ifdef around using reg_do_extmatch.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 23 Jun 2018 15:15:04 +0200 |
parents | 9efe9dec796a |
children | 9d021144571c |
files | src/regexp.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regexp.c +++ b/src/regexp.c @@ -8376,11 +8376,15 @@ vim_regexec_multi( #ifdef FEAT_EVAL report_re_switch(pat); #endif +#ifdef FEAT_SYN_HL // checking for \z misuse was already done when compiling for NFA, // allow all here reg_do_extmatch = REX_ALL; +#endif rmp->regprog = vim_regcomp(pat, re_flags); +#ifdef FEAT_SYN_HL reg_do_extmatch = 0; +#endif if (rmp->regprog != NULL) result = rmp->regprog->engine->regexec_multi(