refactor: fix clint warnings (#17682)

This commit is contained in:
dundargoc
2022-03-13 15:11:17 +01:00
committed by GitHub
parent 4ede2ea4b2
commit 4ba12b3dda
20 changed files with 160 additions and 240 deletions

View File

@@ -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