Mercurial > vim
comparison src/regexp.c @ 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 | 7cac4646c552 |
children | ffd834f893aa |
comparison
equal
deleted
inserted
replaced
14168:9efe9dec796a | 14169:42a9178374d1 |
---|---|
8374 if (pat != NULL) | 8374 if (pat != NULL) |
8375 { | 8375 { |
8376 #ifdef FEAT_EVAL | 8376 #ifdef FEAT_EVAL |
8377 report_re_switch(pat); | 8377 report_re_switch(pat); |
8378 #endif | 8378 #endif |
8379 #ifdef FEAT_SYN_HL | |
8379 // checking for \z misuse was already done when compiling for NFA, | 8380 // checking for \z misuse was already done when compiling for NFA, |
8380 // allow all here | 8381 // allow all here |
8381 reg_do_extmatch = REX_ALL; | 8382 reg_do_extmatch = REX_ALL; |
8383 #endif | |
8382 rmp->regprog = vim_regcomp(pat, re_flags); | 8384 rmp->regprog = vim_regcomp(pat, re_flags); |
8385 #ifdef FEAT_SYN_HL | |
8383 reg_do_extmatch = 0; | 8386 reg_do_extmatch = 0; |
8387 #endif | |
8384 | 8388 |
8385 if (rmp->regprog != NULL) | 8389 if (rmp->regprog != NULL) |
8386 result = rmp->regprog->engine->regexec_multi( | 8390 result = rmp->regprog->engine->regexec_multi( |
8387 rmp, win, buf, lnum, col, tm, timed_out); | 8391 rmp, win, buf, lnum, col, tm, timed_out); |
8388 vim_free(pat); | 8392 vim_free(pat); |