diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-03-13 15:11:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-13 22:11:17 +0800 |
commit | 4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6 (patch) | |
tree | c281f75c93feb5d0789ee602484c22e3b6a83116 /src/nvim/syntax_defs.h | |
parent | 4ede2ea4b2e9cd61fb7e634fa35e6a500816be19 (diff) | |
download | rneovim-4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6.tar.gz rneovim-4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6.tar.bz2 rneovim-4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6.zip |
refactor: fix clint warnings (#17682)
Diffstat (limited to 'src/nvim/syntax_defs.h')
-rw-r--r-- | src/nvim/syntax_defs.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h index 526be905e9..a005f67209 100644 --- a/src/nvim/syntax_defs.h +++ b/src/nvim/syntax_defs.h @@ -21,9 +21,7 @@ struct sp_syn { int16_t *cont_in_list; // cont.in group IDs, if non-zero }; -/* - * Each keyword has one keyentry, which is linked in a hash list. - */ +// Each keyword has one keyentry, which is linked in a hash list. typedef struct keyentry keyentry_T; struct keyentry { @@ -35,9 +33,7 @@ struct keyentry { char_u keyword[1]; // actually longer }; -/* - * Struct used to store one state of the state stack. - */ +// Struct used to store one state of the state stack. typedef struct buf_state { int bs_idx; // index of pattern int bs_flags; // flags for pattern @@ -46,10 +42,8 @@ typedef struct buf_state { reg_extmatch_T *bs_extmatch; // external matches from start pattern } bufstate_T; -/* - * syn_state contains the syntax state stack for the start of one line. - * Used by b_sst_array[]. - */ +// syn_state contains the syntax state stack for the start of one line. +// Used by b_sst_array[]. struct syn_state { synstate_T *sst_next; // next entry in used or free list linenr_T sst_lnum; // line number for this state @@ -66,4 +60,4 @@ struct syn_state { // may have made the state invalid }; -#endif // NVIM_SYNTAX_DEFS_H +#endif // NVIM_SYNTAX_DEFS_H |