diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-27 20:04:20 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-29 07:51:51 -0400 |
commit | 6646502bbbbafcd05e33937f7bcd598834fcf910 (patch) | |
tree | bad5c14cbe9d03a9cad436f1686903bf6bd7fe70 /src/nvim/syntax.c | |
parent | 8888a6ce8088e0646b35e36f31c4087dfc452673 (diff) | |
download | rneovim-6646502bbbbafcd05e33937f7bcd598834fcf910.tar.gz rneovim-6646502bbbbafcd05e33937f7bcd598834fcf910.tar.bz2 rneovim-6646502bbbbafcd05e33937f7bcd598834fcf910.zip |
syntax: syn_cluster_T.scl_list is int16_t*
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 39a68a5eb8..9fea784d30 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -148,9 +148,9 @@ typedef struct syn_pattern { typedef struct syn_cluster_S { - char_u *scl_name; /* syntax cluster name */ - char_u *scl_name_u; /* uppercase of scl_name */ - short *scl_list; /* IDs in this syntax cluster */ + char_u *scl_name; // syntax cluster name + char_u *scl_name_u; // uppercase of scl_name + int16_t *scl_list; // IDs in this syntax cluster } syn_cluster_T; /* @@ -4177,8 +4177,8 @@ static void syn_incl_toplevel(int id, int *flagsp) return; *flagsp |= HL_CONTAINED; if (curwin->w_s->b_syn_topgrp >= SYNID_CLUSTER) { - /* We have to alloc this, because syn_combine_list() will free it. */ - short *grp_list = xmalloc(2 * sizeof(short)); + // We have to alloc this, because syn_combine_list() will free it. + int16_t *grp_list = xmalloc(2 * sizeof(*grp_list)); int tlg_id = curwin->w_s->b_syn_topgrp - SYNID_CLUSTER; grp_list[0] = id; @@ -4913,8 +4913,7 @@ static void syn_cmd_cluster(exarg_T *eap, int syncing) char_u *group_name_end; char_u *rest; int scl_id; - short *clstr_list; - int got_clstr = FALSE; + bool got_clstr = false; int opt_len; int list_op; @@ -4946,7 +4945,7 @@ static void syn_cmd_cluster(exarg_T *eap, int syncing) } else break; - clstr_list = NULL; + int16_t *clstr_list = NULL; if (get_id_list(&rest, opt_len, &clstr_list, eap->skip) == FAIL) { EMSG2(_(e_invarg2), rest); break; |