Mercurial > vim
comparison src/syntax.c @ 17781:04245f071792 v8.1.1887
patch 8.1.1887: the +cmdline_compl feature is not in the tiny version
commit https://github.com/vim/vim/commit/0a52df50a0e8fce6f5e0eb5f5373dcd0fa24d83a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 18 22:26:31 2019 +0200
patch 8.1.1887: the +cmdline_compl feature is not in the tiny version
Problem: The +cmdline_compl feature is not in the tiny version.
Solution: Graduate the +cmdline_compl feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Aug 2019 22:30:04 +0200 |
parents | 121bdff812b4 |
children | 4cf69f8d1ec6 |
comparison
equal
deleted
inserted
replaced
17780:a65bba9901de | 17781:04245f071792 |
---|---|
6300 || win->w_s->b_syn_clusters.ga_len != 0 | 6300 || win->w_s->b_syn_clusters.ga_len != 0 |
6301 || win->w_s->b_keywtab.ht_used > 0 | 6301 || win->w_s->b_keywtab.ht_used > 0 |
6302 || win->w_s->b_keywtab_ic.ht_used > 0); | 6302 || win->w_s->b_keywtab_ic.ht_used > 0); |
6303 } | 6303 } |
6304 | 6304 |
6305 #if defined(FEAT_CMDL_COMPL) || defined(PROTO) | |
6306 | 6305 |
6307 static enum | 6306 static enum |
6308 { | 6307 { |
6309 EXP_SUBCMD, /* expand ":syn" sub-commands */ | 6308 EXP_SUBCMD, /* expand ":syn" sub-commands */ |
6310 EXP_CASE, /* expand ":syn case" arguments */ | 6309 EXP_CASE, /* expand ":syn case" arguments */ |
6407 } | 6406 } |
6408 } | 6407 } |
6409 return NULL; | 6408 return NULL; |
6410 } | 6409 } |
6411 | 6410 |
6412 #endif /* FEAT_CMDL_COMPL */ | |
6413 | 6411 |
6414 /* | 6412 /* |
6415 * Function called for expression evaluation: get syntax ID at file position. | 6413 * Function called for expression evaluation: get syntax ID at file position. |
6416 */ | 6414 */ |
6417 int | 6415 int |
6567 spp = &(SYN_ITEMS(curwin->w_s)[idx]); | 6565 spp = &(SYN_ITEMS(curwin->w_s)[idx]); |
6568 syn_clear_time(&spp->sp_time); | 6566 syn_clear_time(&spp->sp_time); |
6569 } | 6567 } |
6570 } | 6568 } |
6571 | 6569 |
6572 #if defined(FEAT_CMDL_COMPL) || defined(PROTO) | |
6573 /* | 6570 /* |
6574 * Function given to ExpandGeneric() to obtain the possible arguments of the | 6571 * Function given to ExpandGeneric() to obtain the possible arguments of the |
6575 * ":syntime {on,off,clear,report}" command. | 6572 * ":syntime {on,off,clear,report}" command. |
6576 */ | 6573 */ |
6577 char_u * | 6574 char_u * |
6584 case 2: return (char_u *)"clear"; | 6581 case 2: return (char_u *)"clear"; |
6585 case 3: return (char_u *)"report"; | 6582 case 3: return (char_u *)"report"; |
6586 } | 6583 } |
6587 return NULL; | 6584 return NULL; |
6588 } | 6585 } |
6589 #endif | |
6590 | 6586 |
6591 typedef struct | 6587 typedef struct |
6592 { | 6588 { |
6593 proftime_T total; | 6589 proftime_T total; |
6594 int count; | 6590 int count; |