Mercurial > vim
comparison src/structs.h @ 16447:54ffc82f38a8 v8.1.1228
patch 8.1.1228: not possible to process tags with a function
commit https://github.com/vim/vim/commit/45e18cbdc40afd8144d20dcc07ad2d981636f4c9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 28 18:05:35 2019 +0200
patch 8.1.1228: not possible to process tags with a function
Problem: Not possible to process tags with a function.
Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes https://github.com/vim/vim/issues/4010)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Apr 2019 18:15:07 +0200 |
parents | 8c3a1bd270bb |
children | 7a563ee902b6 |
comparison
equal
deleted
inserted
replaced
16446:cee0719a1b4b | 16447:54ffc82f38a8 |
---|---|
145 /* | 145 /* |
146 * The taggy struct is used to store the information about a :tag command. | 146 * The taggy struct is used to store the information about a :tag command. |
147 */ | 147 */ |
148 typedef struct taggy | 148 typedef struct taggy |
149 { | 149 { |
150 char_u *tagname; /* tag name */ | 150 char_u *tagname; // tag name |
151 fmark_T fmark; /* cursor position BEFORE ":tag" */ | 151 fmark_T fmark; // cursor position BEFORE ":tag" |
152 int cur_match; /* match number */ | 152 int cur_match; // match number |
153 int cur_fnum; /* buffer number used for cur_match */ | 153 int cur_fnum; // buffer number used for cur_match |
154 char_u *user_data; // used with tagfunc | |
154 } taggy_T; | 155 } taggy_T; |
155 | 156 |
156 /* | 157 /* |
157 * Structure that contains all options that are local to a window. | 158 * Structure that contains all options that are local to a window. |
158 * Used twice in a window: for the current buffer and for all buffers. | 159 * Used twice in a window: for the current buffer and for all buffers. |
1883 { | 1884 { |
1884 list_T *list; | 1885 list_T *list; |
1885 struct list_stack_S *prev; | 1886 struct list_stack_S *prev; |
1886 } list_stack_T; | 1887 } list_stack_T; |
1887 | 1888 |
1889 /* | |
1890 * Structure used for iterating over dictionary items. | |
1891 * Initialize with dict_iterate_start(). | |
1892 */ | |
1893 typedef struct | |
1894 { | |
1895 long_u dit_todo; | |
1896 hashitem_T *dit_hi; | |
1897 } dict_iterator_T; | |
1898 | |
1888 /* values for b_syn_spell: what to do with toplevel text */ | 1899 /* values for b_syn_spell: what to do with toplevel text */ |
1889 #define SYNSPL_DEFAULT 0 /* spell check if @Spell not defined */ | 1900 #define SYNSPL_DEFAULT 0 /* spell check if @Spell not defined */ |
1890 #define SYNSPL_TOP 1 /* spell check toplevel text */ | 1901 #define SYNSPL_TOP 1 /* spell check toplevel text */ |
1891 #define SYNSPL_NOTOP 2 /* don't spell check toplevel text */ | 1902 #define SYNSPL_NOTOP 2 /* don't spell check toplevel text */ |
1892 | 1903 |
2242 char_u *b_p_cpt; /* 'complete' */ | 2253 char_u *b_p_cpt; /* 'complete' */ |
2243 #endif | 2254 #endif |
2244 #ifdef FEAT_COMPL_FUNC | 2255 #ifdef FEAT_COMPL_FUNC |
2245 char_u *b_p_cfu; /* 'completefunc' */ | 2256 char_u *b_p_cfu; /* 'completefunc' */ |
2246 char_u *b_p_ofu; /* 'omnifunc' */ | 2257 char_u *b_p_ofu; /* 'omnifunc' */ |
2258 #endif | |
2259 #ifdef FEAT_EVAL | |
2260 char_u *b_p_tfu; /* 'tagfunc' */ | |
2247 #endif | 2261 #endif |
2248 int b_p_eol; /* 'endofline' */ | 2262 int b_p_eol; /* 'endofline' */ |
2249 int b_p_fixeol; /* 'fixendofline' */ | 2263 int b_p_fixeol; /* 'fixendofline' */ |
2250 int b_p_et; /* 'expandtab' */ | 2264 int b_p_et; /* 'expandtab' */ |
2251 int b_p_et_nobin; /* b_p_et saved for binary mode */ | 2265 int b_p_et_nobin; /* b_p_et saved for binary mode */ |