diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-04 07:54:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 07:54:34 +0800 |
commit | 4e0a825262ffb2857def79fe1db5c7830c484b5b (patch) | |
tree | 363e9a7044ab99000c9efeefe026d467f4ab3512 /src/nvim/syntax.c | |
parent | a93b55273f76e5fe23f614e691536435999f4452 (diff) | |
parent | 33909b65640a9884f7716bb2d6d73cb75931135b (diff) | |
download | rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.tar.gz rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.tar.bz2 rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.zip |
Merge pull request #17987 from leungbk/vim-patch-4402
vim-patch:8.2.{4639,4402}: missing parenthesis may cause unexpected problems
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index f829b6a270..a82e8fa103 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -181,7 +181,7 @@ static char *(spo_name_tab[SPO_COUNT]) = #define SYN_ITEMS(buf) ((synpat_T *)((buf)->b_syn_patterns.ga_data)) -#define NONE_IDX -2 // value of sp_sync_idx for "NONE" +#define NONE_IDX (-2) // value of sp_sync_idx for "NONE" /* * Flags for b_syn_sync_flags: @@ -267,9 +267,9 @@ static int keepend_level = -1; static char msg_no_items[] = N_("No Syntax items defined for this buffer"); // value of si_idx for keywords -#define KEYWORD_IDX -1 +#define KEYWORD_IDX (-1) // valid of si_cont_list for containing all but contained groups -#define ID_LIST_ALL (int16_t *)-1 +#define ID_LIST_ALL ((int16_t *)-1) static int next_seqnr = 1; // value to use for si_seqnr |