mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
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:
@@ -47,6 +47,7 @@
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/hardcopy.h"
|
||||
#include "nvim/highlight.h"
|
||||
#include "nvim/highlight_group.h"
|
||||
#include "nvim/indent_c.h"
|
||||
#include "nvim/keymap.h"
|
||||
#include "nvim/macros.h"
|
||||
@@ -3853,7 +3854,7 @@ static bool parse_winhl_opt(win_T *wp)
|
||||
size_t nlen = (size_t)(colon-p);
|
||||
char *hi = colon+1;
|
||||
char *commap = xstrchrnul(hi, ',');
|
||||
int len = (int)(commap-hi);
|
||||
size_t len = (size_t)(commap-hi);
|
||||
int hl_id = len ? syn_check_group(hi, len) : -1;
|
||||
|
||||
if (strncmp("Normal", p, nlen) == 0) {
|
||||
|
Reference in New Issue
Block a user