refactor(api): use a keyset for highlight dicts

This commit is contained in:
Björn Linse
2022-02-02 22:01:52 +01:00
parent 21cdecc8e0
commit 0bafa44f8b
6 changed files with 143 additions and 142 deletions

View File

@@ -46,18 +46,6 @@ typedef struct attr_entry {
.hl_blend = -1, \
}
typedef struct {
char *bg_name;
char *fg_name;
char *sp_name;
} HlAttrNames;
#define HLATTRNAMES_INIT (HlAttrNames) { \
.bg_name = NULL, \
.fg_name = NULL, \
.sp_name = NULL, \
}
/// Values for index in highlight_attr[].
/// When making changes, also update hlf_names below!
typedef enum {