aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/syntax_defs.h')
-rw-r--r--src/nvim/syntax_defs.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h
index ae4997154e..94ca2c4cba 100644
--- a/src/nvim/syntax_defs.h
+++ b/src/nvim/syntax_defs.h
@@ -1,6 +1,6 @@
#pragma once
-#include "nvim/highlight_defs.h"
+#include "nvim/buffer_defs.h"
#define SST_MIN_ENTRIES 150 // minimal size for state stack array
#define SST_MAX_ENTRIES 1000 // maximal size for state stack array
@@ -8,11 +8,6 @@
#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 sp_syn {
int inc_tag; // ":syn include" unique tag
@@ -33,7 +28,7 @@ struct keyentry {
};
// Struct used to store one state of the state stack.
-typedef struct buf_state {
+typedef struct {
int bs_idx; // index of pattern
int bs_flags; // flags for pattern
int bs_seqnr; // stores si_seqnr