Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -147,10 +147,11 @@ typedef struct xfilemark */ typedef struct taggy { - char_u *tagname; /* tag name */ - fmark_T fmark; /* cursor position BEFORE ":tag" */ - int cur_match; /* match number */ - int cur_fnum; /* buffer number used for cur_match */ + char_u *tagname; // tag name + fmark_T fmark; // cursor position BEFORE ":tag" + int cur_match; // match number + int cur_fnum; // buffer number used for cur_match + char_u *user_data; // used with tagfunc } taggy_T; /* @@ -1885,6 +1886,16 @@ typedef struct list_stack_S struct list_stack_S *prev; } list_stack_T; +/* + * Structure used for iterating over dictionary items. + * Initialize with dict_iterate_start(). + */ +typedef struct +{ + long_u dit_todo; + hashitem_T *dit_hi; +} dict_iterator_T; + /* values for b_syn_spell: what to do with toplevel text */ #define SYNSPL_DEFAULT 0 /* spell check if @Spell not defined */ #define SYNSPL_TOP 1 /* spell check toplevel text */ @@ -2245,6 +2256,9 @@ struct file_buffer char_u *b_p_cfu; /* 'completefunc' */ char_u *b_p_ofu; /* 'omnifunc' */ #endif +#ifdef FEAT_EVAL + char_u *b_p_tfu; /* 'tagfunc' */ +#endif int b_p_eol; /* 'endofline' */ int b_p_fixeol; /* 'fixendofline' */ int b_p_et; /* 'expandtab' */