mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
highlight: refactor to use stateful representation
This allows us to keep track of the source higlight groups, and not only the final combined highlights.
This commit is contained in:
@@ -152,4 +152,19 @@ EXTERN RgbValue normal_fg INIT(= -1);
|
||||
EXTERN RgbValue normal_bg INIT(= -1);
|
||||
EXTERN RgbValue normal_sp INIT(= -1);
|
||||
|
||||
typedef enum {
|
||||
kHlUnknown,
|
||||
kHlUI,
|
||||
kHlSyntax,
|
||||
kHlTerminal,
|
||||
kHlCombine,
|
||||
} HlKind;
|
||||
|
||||
typedef struct {
|
||||
HlAttrs attr;
|
||||
HlKind kind;
|
||||
int id1;
|
||||
int id2;
|
||||
} HlEntry;
|
||||
|
||||
#endif // NVIM_HIGHLIGHT_DEFS_H
|
||||
|
Reference in New Issue
Block a user