aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax_defs.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-10-21 04:09:11 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-10-21 04:09:11 +0200
commita3a9ef9ad4ecf6ee1db98148d165755043d3ff04 (patch)
treeea161efef8bcf1c856bb6e39749584e1f0d78084 /src/nvim/syntax_defs.h
parent3ce97879d09c5cbeba6fdc5ebd7525b127df18e0 (diff)
parentdde3ece10ed4ee62744009fa1fd347be740fc845 (diff)
downloadrneovim-a3a9ef9ad4ecf6ee1db98148d165755043d3ff04.tar.gz
rneovim-a3a9ef9ad4ecf6ee1db98148d165755043d3ff04.tar.bz2
rneovim-a3a9ef9ad4ecf6ee1db98148d165755043d3ff04.zip
Merge #7030 'refactor/single-include'
ref #5321
Diffstat (limited to 'src/nvim/syntax_defs.h')
-rw-r--r--src/nvim/syntax_defs.h8
1 files changed, 5 insertions, 3 deletions
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 */