vim-patch:8.1.1693: syntax coloring and highlighting is in one big file (#17721)

Problem:    Syntax coloring and highlighting is in one big file.
Solution:   Move the highlighting to a separate file. (Yegappan Lakshmanan,
            closes vim/vim#4674)

f9cc9f209e

Name the new file highlight_group.c instead.

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
Lewis Russell
2022-03-18 04:47:08 +00:00
committed by GitHub
parent c1b98cfa5e
commit 00effff569
30 changed files with 2874 additions and 2841 deletions

View File

@@ -0,0 +1,19 @@
#ifndef NVIM_HIGHLIGHT_GROUP_H
#define NVIM_HIGHLIGHT_GROUP_H
#include "nvim/types.h"
#include "nvim/eval.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