syntax.h (1846B)
1 #pragma once 2 3 #include "nvim/cmdexpand_defs.h" // IWYU pragma: keep 4 #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep 5 #include "nvim/macros_defs.h" 6 #include "nvim/syntax_defs.h" // IWYU pragma: keep 7 #include "nvim/types_defs.h" // IWYU pragma: keep 8 9 enum { 10 HL_CONTAINED = 0x01, ///< not used on toplevel 11 HL_TRANSP = 0x02, ///< has no highlighting 12 HL_ONELINE = 0x04, ///< match within one line only 13 HL_HAS_EOL = 0x08, ///< end pattern that matches with $ 14 HL_SYNC_HERE = 0x10, ///< sync point after this item (syncing only) 15 HL_SYNC_THERE = 0x20, ///< sync point at current line (syncing only) 16 HL_MATCH = 0x40, ///< use match ID instead of item ID 17 HL_SKIPNL = 0x80, ///< nextgroup can skip newlines 18 HL_SKIPWHITE = 0x100, ///< nextgroup can skip white space 19 HL_SKIPEMPTY = 0x200, ///< nextgroup can skip empty lines 20 HL_KEEPEND = 0x400, ///< end match always kept 21 HL_EXCLUDENL = 0x800, ///< exclude NL from match 22 HL_DISPLAY = 0x1000, ///< only used for displaying, not syncing 23 HL_FOLD = 0x2000, ///< define fold 24 HL_EXTEND = 0x4000, ///< ignore a keepend 25 HL_MATCHCONT = 0x8000, ///< match continued from previous line 26 HL_TRANS_CONT = 0x10000, ///< transparent item without contains arg 27 HL_CONCEAL = 0x20000, ///< can be concealed 28 HL_CONCEALENDS = 0x40000, ///< can be concealed 29 HL_INCLUDED_TOPLEVEL = 0x80000, ///< toplevel item in included syntax, allowed by contains=TOP 30 }; 31 32 #define SYN_GROUP_STATIC(s) syn_check_group(S_LEN(s)) 33 34 /// Array of highlight definitions, used for unit testing 35 extern const char *const highlight_init_cmdline[]; 36 37 #include "syntax.h.generated.h"