Skip to content

Commit 1f8c469

Browse files
committed
patch 8.1.0102: cannot build without syntax highlighting
Problem: Cannot build without syntax highlighting. Solution: Add #ifdef around using reg_do_extmatch.
1 parent 81612b7 commit 1f8c469

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/regexp.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8376,11 +8376,15 @@ vim_regexec_multi(
83768376
#ifdef FEAT_EVAL
83778377
report_re_switch(pat);
83788378
#endif
8379+
#ifdef FEAT_SYN_HL
83798380
// checking for \z misuse was already done when compiling for NFA,
83808381
// allow all here
83818382
reg_do_extmatch = REX_ALL;
8383+
#endif
83828384
rmp->regprog = vim_regcomp(pat, re_flags);
8385+
#ifdef FEAT_SYN_HL
83838386
reg_do_extmatch = 0;
8387+
#endif
83848388

83858389
if (rmp->regprog != NULL)
83868390
result = rmp->regprog->engine->regexec_multi(

‎src/version.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
102,
764766
/**/
765767
101,
766768
/**/

0 commit comments

Comments
 (0)