refactor(highlight): merge redundant attr_entries and attr_entry_ids structs

An insert-only set now defines a monotonically increasing ordering by
itself. It can be used to both lookup the key from index, and vice versa.
This commit is contained in:
bfredl
2023-09-12 11:54:36 +02:00
parent 1c4a93b591
commit a6d745865a
4 changed files with 33 additions and 37 deletions

View File

@@ -196,9 +196,6 @@ void mh_clear(MapHash *h)
#define KEY_NAME(x) x##HlEntry
#include "nvim/map_key_impl.c.h"
#define VAL_NAME(x) quasiquote(x, int)
#include "nvim/map_value_impl.c.h"
#undef VAL_NAME
#undef KEY_NAME
#define KEY_NAME(x) x##ColorKey