Mercurial > vim
annotate src/proto/highlight.pro @ 26390:24632928d8c5 v8.2.3726
patch 8.2.3726: README file in a config directory gets wrong filetype
Commit: https://github.com/vim/vim/commit/c903695be54189fd7199121e9cd669e722fbc9c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 3 11:44:03 2021 +0000
patch 8.2.3726: README file in a config directory gets wrong filetype
Problem: README file in a config directory gets wrong filetype.
Solution: Match README before patterns that match everything in a directory.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 Dec 2021 12:45:03 +0100 |
parents | bb87ce13e7d6 |
children | 18cafa092e8d |
rev | line source |
---|---|
17389
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* highlight.c */ |
17401
5462bb963075
patch 8.1.1699: highlight_ga can be local instead of global
Bram Moolenaar <Bram@vim.org>
parents:
17389
diff
changeset
|
2 int highlight_num_groups(void); |
5462bb963075
patch 8.1.1699: highlight_ga can be local instead of global
Bram Moolenaar <Bram@vim.org>
parents:
17389
diff
changeset
|
3 char_u *highlight_group_name(int id); |
5462bb963075
patch 8.1.1699: highlight_ga can be local instead of global
Bram Moolenaar <Bram@vim.org>
parents:
17389
diff
changeset
|
4 int highlight_link_id(int id); |
17389
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 void init_highlight(int both, int reset); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 int load_colors(char_u *name); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 int lookup_color(int idx, int foreground, int *boldp); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 void do_highlight(char_u *line, int forceit, int init); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 void free_highlight(void); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 void restore_cterm_colors(void); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 void set_normal_colors(void); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 char_u *hl_get_font_name(void); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 void hl_set_font_name(char_u *font_name); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 void hl_set_bg_color_name(char_u *name); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
15 void hl_set_fg_color_name(char_u *name); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
16 guicolor_T color_name2handle(char_u *name); |
26057
92c424550367
patch 8.2.3562: cannot add color names
Bram Moolenaar <Bram@vim.org>
parents:
21054
diff
changeset
|
17 guicolor_T decode_hex_color(char_u *hex); |
92c424550367
patch 8.2.3562: cannot add color names
Bram Moolenaar <Bram@vim.org>
parents:
21054
diff
changeset
|
18 guicolor_T colorname2rgb(char_u *name); |
92c424550367
patch 8.2.3562: cannot add color names
Bram Moolenaar <Bram@vim.org>
parents:
21054
diff
changeset
|
19 void load_default_colors_lists(void); |
92c424550367
patch 8.2.3562: cannot add color names
Bram Moolenaar <Bram@vim.org>
parents:
21054
diff
changeset
|
20 guicolor_T gui_get_color_cmn(char_u *name); |
92c424550367
patch 8.2.3562: cannot add color names
Bram Moolenaar <Bram@vim.org>
parents:
21054
diff
changeset
|
21 guicolor_T gui_get_rgb_color_cmn(int r, int g, int b); |
17389
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
22 int get_cterm_attr_idx(int attr, int fg, int bg); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
23 int get_tgc_attr_idx(int attr, guicolor_T fg, guicolor_T bg); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
24 int get_gui_attr_idx(int attr, guicolor_T fg, guicolor_T bg); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
25 void clear_hl_tables(void); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
26 int hl_combine_attr(int char_attr, int prim_attr); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
27 attrentry_T *syn_gui_attr2entry(int attr); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
28 int syn_attr2attr(int attr); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
29 attrentry_T *syn_term_attr2entry(int attr); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
30 attrentry_T *syn_cterm_attr2entry(int attr); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
31 char_u *highlight_has_attr(int id, int flag, int modec); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
32 char_u *highlight_color(int id, char_u *what, int modec); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
33 long_u highlight_gui_color_rgb(int id, int fg); |
17401
5462bb963075
patch 8.1.1699: highlight_ga can be local instead of global
Bram Moolenaar <Bram@vim.org>
parents:
17389
diff
changeset
|
34 int syn_list_header(int did_header, int outlen, int id); |
17389
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
35 int syn_name2id(char_u *name); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
36 int syn_name2attr(char_u *name); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
37 int highlight_exists(char_u *name); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
38 char_u *syn_id2name(int id); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
39 int syn_namen2id(char_u *linep, int len); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
40 int syn_check_group(char_u *pp, int len); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
41 int syn_id2attr(int hl_id); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
42 int syn_id2colors(int hl_id, guicolor_T *fgp, guicolor_T *bgp); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
43 void syn_id2cterm_bg(int hl_id, int *fgp, int *bgp); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
44 int syn_get_final_id(int hl_id); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
45 void highlight_gui_started(void); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
46 int highlight_changed(void); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
47 void set_context_in_highlight_cmd(expand_T *xp, char_u *arg); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
48 char_u *get_highlight_name(expand_T *xp, int idx); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
49 char_u *get_highlight_name_ext(expand_T *xp, int idx, int skip_cleared); |
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
50 void free_highlight_fonts(void); |
26089
c544eacaf066
patch 8.2.3578: manipulating highlighting is complicated
Bram Moolenaar <Bram@vim.org>
parents:
26057
diff
changeset
|
51 void f_hlget(typval_T *argvars, typval_T *rettv); |
c544eacaf066
patch 8.2.3578: manipulating highlighting is complicated
Bram Moolenaar <Bram@vim.org>
parents:
26057
diff
changeset
|
52 void f_hlset(typval_T *argvars, typval_T *rettv); |
17389
635d7f5010b8
patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
53 /* vim: set ft=c : */ |