aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax_defs.h
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-10-12 16:56:52 +0200
committerGitHub <noreply@github.com>2021-10-12 07:56:52 -0700
commit40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf (patch)
treec46f06f4c40d85e308017e379a97fd1aebcebef1 /src/nvim/syntax_defs.h
parentee342d3cef97aa2414c05261b448228ae3277862 (diff)
downloadrneovim-40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf.tar.gz
rneovim-40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf.tar.bz2
rneovim-40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf.zip
refactor: format all C files under nvim/ #15977
* refactor: format all C files under nvim * refactor: disable formatting for Vim-owned files: * src/nvim/indent_c.c * src/nvim/regexp.c * src/nvim/regexp_nfa.c * src/nvim/testdir/samples/memfile_test.c
Diffstat (limited to 'src/nvim/syntax_defs.h')
-rw-r--r--src/nvim/syntax_defs.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h
index 5ee0611d58..526be905e9 100644
--- a/src/nvim/syntax_defs.h
+++ b/src/nvim/syntax_defs.h
@@ -3,18 +3,18 @@
#include "nvim/highlight_defs.h"
-# define SST_MIN_ENTRIES 150 /* minimal size for state stack array */
-# define SST_MAX_ENTRIES 1000 /* maximal size for state stack array */
-# define SST_FIX_STATES 7 /* size of sst_stack[]. */
-# define SST_DIST 16 /* normal distance between entries */
-# define SST_INVALID (synstate_T *)-1 /* invalid syn_state pointer */
+#define SST_MIN_ENTRIES 150 // minimal size for state stack array
+#define SST_MAX_ENTRIES 1000 // maximal size for state stack array
+#define SST_FIX_STATES 7 // size of sst_stack[].
+#define SST_DIST 16 // normal distance between entries
+#define SST_INVALID (synstate_T *)-1 // invalid syn_state pointer
typedef struct syn_state synstate_T;
#include "nvim/buffer_defs.h"
#include "nvim/regexp_defs.h"
-/* struct passed to in_id_list() */
+// struct passed to in_id_list()
struct sp_syn {
int inc_tag; // ":syn include" unique tag
int16_t id; // highlight group ID of item
@@ -27,7 +27,7 @@ struct sp_syn {
typedef struct keyentry keyentry_T;
struct keyentry {
- keyentry_T *ke_next; // next entry with identical "keyword[]"
+ keyentry_T *ke_next; // next entry with identical "keyword[]"
struct sp_syn k_syn; // struct passed to in_id_list()
int16_t *next_list; // ID list for next match (if non-zero)
int flags;
@@ -39,11 +39,11 @@ struct keyentry {
* 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 */
- int bs_seqnr; /* stores si_seqnr */
- int bs_cchar; /* stores si_cchar */
- reg_extmatch_T *bs_extmatch; /* external matches from start pattern */
+ int bs_idx; // index of pattern
+ int bs_flags; // flags for pattern
+ int bs_seqnr; // stores si_seqnr
+ int bs_cchar; // stores si_cchar
+ reg_extmatch_T *bs_extmatch; // external matches from start pattern
} bufstate_T;
/*
@@ -51,11 +51,11 @@ typedef struct buf_state {
* 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 */
+ synstate_T *sst_next; // next entry in used or free list
+ linenr_T sst_lnum; // line number for this state
union {
- bufstate_T sst_stack[SST_FIX_STATES]; /* short state stack */
- garray_T sst_ga; /* growarray for long state stack */
+ bufstate_T sst_stack[SST_FIX_STATES]; // short state stack
+ garray_T sst_ga; // growarray for long state stack
} sst_union;
int sst_next_flags; // flags for sst_next_list
int sst_stacksize; // number of states on the stack