mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00

problem: can we have Serde? solution: we have Serde at home This by itself is just a change of notation, that could be quickly merged to avoid messy merge conflicts, but upcoming changes are planned: - keysets no longer need to be defined in one single file. `keysets.h` is just the initial automatic conversion of the previous `keysets.lua`. keysets just used in a single api/{scope}.h can be moved to that file, later on. - Typed dicts will have more specific types than Object. this will enable most of the existing manual typechecking boilerplate to be eliminated. We will need some annotation for missing value, i e a boolean will need to be represented as a TriState (none/false/true) in some cases. - Eventually: optional parameters in form of a `Dict opts` final parameter will get added in some form to metadata. this will require a discussion/desicion about type forward compatibility.
22 lines
493 B
C
22 lines
493 B
C
#ifndef NVIM_HIGHLIGHT_GROUP_H
|
|
#define NVIM_HIGHLIGHT_GROUP_H
|
|
|
|
#include "nvim/api/keysets.h"
|
|
#include "nvim/api/private/helpers.h"
|
|
#include "nvim/highlight_defs.h"
|
|
#include "nvim/types.h"
|
|
|
|
#define MAX_HL_ID 20000 // maximum value for a highlight ID.
|
|
|
|
typedef struct {
|
|
char *name;
|
|
RgbValue color;
|
|
} color_name_table_T;
|
|
extern color_name_table_T color_name_table[];
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "highlight_group.h.generated.h"
|
|
#endif
|
|
|
|
#endif // NVIM_HIGHLIGHT_GROUP_H
|