]> granicus.if.org Git - vim/commitdiff
patch 8.1.0102: cannot build without syntax highlighting v8.1.0102
authorBram Moolenaar <Bram@vim.org>
Sat, 23 Jun 2018 13:09:10 +0000 (15:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 23 Jun 2018 13:09:10 +0000 (15:09 +0200)
Problem:    Cannot build without syntax highlighting.
Solution:   Add #ifdef around using reg_do_extmatch.

src/regexp.c
src/version.c

index 9ac712eebcd7a5b1860d59870d9009c7ab926c5b..7344928ff06fafb2073ead8280956ae538e047de 100644 (file)
@@ -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(
index a2da37ed808e84ad6b1c9b2be914a69565a2825b..a38cdda3a36578075b204d50ea70075e94bced07 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    102,
 /**/
     101,
 /**/