Mercurial > vim
comparison src/proto/highlight.pro @ 17389:635d7f5010b8 v8.1.1693
patch 8.1.1693: syntax coloring and highlighting is in one big file
commit https://github.com/vim/vim/commit/f9cc9f209ede9f15959e4c2351e970477c139614
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 14 21:29:22 2019 +0200
patch 8.1.1693: syntax coloring and highlighting is in one big file
Problem: Syntax coloring and highlighting is in one big file.
Solution: Move the highlighting to a separate file. (Yegappan Lakshmanan,
closes #4674)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Jul 2019 21:30:04 +0200 |
parents | |
children | 5462bb963075 |
comparison
equal
deleted
inserted
replaced
17388:13104cd7dc9f | 17389:635d7f5010b8 |
---|---|
1 /* highlight.c */ | |
2 void init_highlight(int both, int reset); | |
3 int load_colors(char_u *name); | |
4 int lookup_color(int idx, int foreground, int *boldp); | |
5 void do_highlight(char_u *line, int forceit, int init); | |
6 void free_highlight(void); | |
7 void restore_cterm_colors(void); | |
8 void set_normal_colors(void); | |
9 char_u *hl_get_font_name(void); | |
10 void hl_set_font_name(char_u *font_name); | |
11 void hl_set_bg_color_name(char_u *name); | |
12 void hl_set_fg_color_name(char_u *name); | |
13 guicolor_T color_name2handle(char_u *name); | |
14 int get_cterm_attr_idx(int attr, int fg, int bg); | |
15 int get_tgc_attr_idx(int attr, guicolor_T fg, guicolor_T bg); | |
16 int get_gui_attr_idx(int attr, guicolor_T fg, guicolor_T bg); | |
17 void clear_hl_tables(void); | |
18 int hl_combine_attr(int char_attr, int prim_attr); | |
19 attrentry_T *syn_gui_attr2entry(int attr); | |
20 int syn_attr2attr(int attr); | |
21 attrentry_T *syn_term_attr2entry(int attr); | |
22 attrentry_T *syn_cterm_attr2entry(int attr); | |
23 char_u *highlight_has_attr(int id, int flag, int modec); | |
24 char_u *highlight_color(int id, char_u *what, int modec); | |
25 long_u highlight_gui_color_rgb(int id, int fg); | |
26 int syn_list_header(int did_header, int outlen, int id); | |
27 int syn_name2id(char_u *name); | |
28 int syn_name2attr(char_u *name); | |
29 int highlight_exists(char_u *name); | |
30 char_u *syn_id2name(int id); | |
31 int syn_namen2id(char_u *linep, int len); | |
32 int syn_check_group(char_u *pp, int len); | |
33 int syn_id2attr(int hl_id); | |
34 int syn_id2colors(int hl_id, guicolor_T *fgp, guicolor_T *bgp); | |
35 void syn_id2cterm_bg(int hl_id, int *fgp, int *bgp); | |
36 int syn_get_final_id(int hl_id); | |
37 void highlight_gui_started(void); | |
38 int highlight_changed(void); | |
39 void set_context_in_highlight_cmd(expand_T *xp, char_u *arg); | |
40 char_u *get_highlight_name(expand_T *xp, int idx); | |
41 char_u *get_highlight_name_ext(expand_T *xp, int idx, int skip_cleared); | |
42 void free_highlight_fonts(void); | |
43 /* vim: set ft=c : */ |