diff options
Diffstat (limited to 'src/nvim/syntax.h')
-rw-r--r-- | src/nvim/syntax.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/nvim/syntax.h b/src/nvim/syntax.h index af2ac719c6..9fbad74f64 100644 --- a/src/nvim/syntax.h +++ b/src/nvim/syntax.h @@ -3,19 +3,9 @@ #include <stdbool.h> +#include "nvim/globals.h" #include "nvim/buffer_defs.h" - -/* - * Terminal highlighting attribute bits. - * Attributes above HL_ALL are used for syntax highlighting. - */ -#define HL_NORMAL 0x00 -#define HL_INVERSE 0x01 -#define HL_BOLD 0x02 -#define HL_ITALIC 0x04 -#define HL_UNDERLINE 0x08 -#define HL_UNDERCURL 0x10 -#define HL_STANDOUT 0x20 +#include "nvim/ex_cmds_defs.h" #define HL_CONTAINED 0x01 /* not used on toplevel */ #define HL_TRANSP 0x02 /* has no highlighting */ @@ -43,6 +33,9 @@ typedef struct { } color_name_table_T; extern color_name_table_T color_name_table[]; +/// Array of highlight definitions, used for unit testing +extern const char *const highlight_init_cmdline[]; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "syntax.h.generated.h" #endif |