Mercurial > vim
annotate src/proto/syntax.pro @ 4541:80170d61a85c v7.3.1018
updated for version 7.3.1018
Problem: New regexp engine wastes memory.
Solution: Allocate prog with actual number of states, not estimated maximum
number of sates.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 25 May 2013 21:18:34 +0200 |
parents | 0371401d9d33 |
children | f824cb97eb92 |
rev | line source |
---|---|
7 | 1 /* syntax.c */ |
1121 | 2 void syntax_start __ARGS((win_T *wp, linenr_T lnum)); |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
1504
diff
changeset
|
3 void syn_stack_free_all __ARGS((synblock_T *block)); |
1121 | 4 void syn_stack_apply_changes __ARGS((buf_T *buf)); |
5 void syntax_end_parsing __ARGS((linenr_T lnum)); | |
6 int syntax_check_changed __ARGS((linenr_T lnum)); | |
2375
a96dd77ce213
For conceal mode: when two different syntax items follow each other, show the
Bram Moolenaar <bram@vim.org>
parents:
2253
diff
changeset
|
7 int get_syntax_attr __ARGS((colnr_T col, int *can_spell, int keep_state)); |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
1504
diff
changeset
|
8 void syntax_clear __ARGS((synblock_T *block)); |
2253
12ebd6f6dfce
Fixed: after ":ownsyntax perl" and ":e" syntax was cleared in other window.
Bram Moolenaar <bram@vim.org>
parents:
2250
diff
changeset
|
9 void reset_synblock __ARGS((win_T *wp)); |
1121 | 10 void ex_syntax __ARGS((exarg_T *eap)); |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
1504
diff
changeset
|
11 void ex_ownsyntax __ARGS((exarg_T *eap)); |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
1504
diff
changeset
|
12 int syntax_present __ARGS((win_T *win)); |
1322 | 13 void reset_expand_highlight __ARGS((void)); |
14 void set_context_in_echohl_cmd __ARGS((expand_T *xp, char_u *arg)); | |
1121 | 15 void set_context_in_syntax_cmd __ARGS((expand_T *xp, char_u *arg)); |
16 char_u *get_syntax_name __ARGS((expand_T *xp, int idx)); | |
1504 | 17 int syn_get_id __ARGS((win_T *wp, long lnum, colnr_T col, int trans, int *spellp, int keep_state)); |
2392
0371401d9d33
Give each syntax item a sequence number, so that we know when it starts and
Bram Moolenaar <bram@vim.org>
parents:
2375
diff
changeset
|
18 int get_syntax_info __ARGS((int *seqnrp)); |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
1504
diff
changeset
|
19 int syn_get_sub_char __ARGS((void)); |
1500 | 20 int syn_get_stack_item __ARGS((int i)); |
1121 | 21 int syn_get_foldlevel __ARGS((win_T *wp, long lnum)); |
22 void init_highlight __ARGS((int both, int reset)); | |
23 int load_colors __ARGS((char_u *name)); | |
24 void do_highlight __ARGS((char_u *line, int forceit, int init)); | |
25 void free_highlight __ARGS((void)); | |
26 void restore_cterm_colors __ARGS((void)); | |
27 void set_normal_colors __ARGS((void)); | |
28 char_u *hl_get_font_name __ARGS((void)); | |
29 void hl_set_font_name __ARGS((char_u *font_name)); | |
30 void hl_set_bg_color_name __ARGS((char_u *name)); | |
31 void hl_set_fg_color_name __ARGS((char_u *name)); | |
32 void clear_hl_tables __ARGS((void)); | |
33 int hl_combine_attr __ARGS((int char_attr, int prim_attr)); | |
34 attrentry_T *syn_gui_attr2entry __ARGS((int attr)); | |
35 int syn_attr2attr __ARGS((int attr)); | |
36 attrentry_T *syn_term_attr2entry __ARGS((int attr)); | |
37 attrentry_T *syn_cterm_attr2entry __ARGS((int attr)); | |
38 char_u *highlight_has_attr __ARGS((int id, int flag, int modec)); | |
39 char_u *highlight_color __ARGS((int id, char_u *what, int modec)); | |
40 long_u highlight_gui_color_rgb __ARGS((int id, int fg)); | |
41 int syn_name2id __ARGS((char_u *name)); | |
42 int highlight_exists __ARGS((char_u *name)); | |
43 char_u *syn_id2name __ARGS((int id)); | |
44 int syn_namen2id __ARGS((char_u *linep, int len)); | |
45 int syn_check_group __ARGS((char_u *pp, int len)); | |
46 int syn_id2attr __ARGS((int hl_id)); | |
47 int syn_id2colors __ARGS((int hl_id, guicolor_T *fgp, guicolor_T *bgp)); | |
48 int syn_get_final_id __ARGS((int hl_id)); | |
49 void highlight_gui_started __ARGS((void)); | |
50 int highlight_changed __ARGS((void)); | |
51 void set_context_in_highlight_cmd __ARGS((expand_T *xp, char_u *arg)); | |
52 char_u *get_highlight_name __ARGS((expand_T *xp, int idx)); | |
53 void free_highlight_fonts __ARGS((void)); | |
7 | 54 /* vim: set ft=c : */ |