aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelnod <mail@paul-schiffers.de>2017-07-15 16:47:12 +0200
committerrelnod <mail@paul-schiffers.de>2017-10-19 11:17:18 +0200
commit4b0a086d165013ff5726b987b353d88a863491a9 (patch)
tree0d555e21c6860bd48fc60766b79d5ca99e1d8ac2
parent69199958b7ed9ec87a83b2ac0fd37a0c3e41a506 (diff)
downloadrneovim-4b0a086d165013ff5726b987b353d88a863491a9.tar.gz
rneovim-4b0a086d165013ff5726b987b353d88a863491a9.tar.bz2
rneovim-4b0a086d165013ff5726b987b353d88a863491a9.zip
refactor/single-include: syntax_defs.h
-rw-r--r--src/nvim/CMakeLists.txt1
-rw-r--r--src/nvim/syntax_defs.h8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 7bd121050e..2cc236101c 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -541,7 +541,6 @@ endfunction()
set(NO_SINGLE_CHECK_HEADERS
os/win_defs.h
os/pty_process_win.h
- syntax_defs.h
undo.h
undo_defs.h
)
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h
index 56fadbe7f6..7260853703 100644
--- a/src/nvim/syntax_defs.h
+++ b/src/nvim/syntax_defs.h
@@ -2,7 +2,6 @@
#define NVIM_SYNTAX_DEFS_H
#include "nvim/highlight_defs.h"
-#include "nvim/regexp_defs.h"
# define SST_MIN_ENTRIES 150 /* minimal size for state stack array */
# define SST_MAX_ENTRIES 1000 /* maximal size for state stack array */
@@ -10,6 +9,11 @@
# 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"
+
typedef unsigned short disptick_T; /* display tick type */
/* struct passed to in_id_list() */
@@ -48,8 +52,6 @@ typedef struct buf_state {
* syn_state contains the syntax state stack for the start of one line.
* Used by b_sst_array[].
*/
-typedef struct syn_state synstate_T;
-
struct syn_state {
synstate_T *sst_next; /* next entry in used or free list */
linenr_T sst_lnum; /* line number for this state */