comparison src/syntax.c @ 14968:c5ec5ddbe814 v8.1.0495

patch 8.1.0495: :filter only supports some commands commit https://github.com/vim/vim/commit/f86db78fed78541cefdb706e4779ce5ae9ca7820 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 25 13:31:37 2018 +0200 patch 8.1.0495: :filter only supports some commands Problem: :filter only supports some commands. Solution: Add :filter support for more commands. (Marcin Szamotulski, closes #2856)
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Oct 2018 13:45:05 +0200
parents 27b9a84395b5
children 55ccc2d353bd
comparison
equal deleted inserted replaced
14967:5acaac1226fd 14968:c5ec5ddbe814
350 static int next_match_end_idx; /* ID of group for end pattn or zero */ 350 static int next_match_end_idx; /* ID of group for end pattn or zero */
351 static reg_extmatch_T *next_match_extmatch = NULL; 351 static reg_extmatch_T *next_match_extmatch = NULL;
352 352
353 /* 353 /*
354 * A state stack is an array of integers or stateitem_T, stored in a 354 * A state stack is an array of integers or stateitem_T, stored in a
355 * garray_T. A state stack is invalid if it's itemsize entry is zero. 355 * garray_T. A state stack is invalid if its itemsize entry is zero.
356 */ 356 */
357 #define INVALID_STATE(ssp) ((ssp)->ga_itemsize == 0) 357 #define INVALID_STATE(ssp) ((ssp)->ga_itemsize == 0)
358 #define VALID_STATE(ssp) ((ssp)->ga_itemsize != 0) 358 #define VALID_STATE(ssp) ((ssp)->ga_itemsize != 0)
359 359
360 /* 360 /*
9187 highlight_list_one(int id) 9187 highlight_list_one(int id)
9188 { 9188 {
9189 struct hl_group *sgp; 9189 struct hl_group *sgp;
9190 int didh = FALSE; 9190 int didh = FALSE;
9191 9191
9192 sgp = &HL_TABLE()[id - 1]; /* index is ID minus one */ 9192 sgp = &HL_TABLE()[id - 1]; // index is ID minus one
9193
9194 if (message_filtered(sgp->sg_name))
9195 return;
9193 9196
9194 didh = highlight_list_arg(id, didh, LIST_ATTR, 9197 didh = highlight_list_arg(id, didh, LIST_ATTR,
9195 sgp->sg_term, NULL, "term"); 9198 sgp->sg_term, NULL, "term");
9196 didh = highlight_list_arg(id, didh, LIST_STRING, 9199 didh = highlight_list_arg(id, didh, LIST_STRING,
9197 0, sgp->sg_start, "start"); 9200 0, sgp->sg_start, "start");