summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-28 18:05:35 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-28 18:05:35 +0200
commit45e18cbdc40afd8144d20dcc07ad2d981636f4c9 (patch)
tree11762469ca5d6c4bd49ca50381160afd30dcb2f3 /src/structs.h
parent7a9df9dd00bac462a2942dc798e298f365779fd0 (diff)
downloadvim-git-45e18cbdc40afd8144d20dcc07ad2d981636f4c9.tar.gz
patch 8.1.1228: not possible to process tags with a functionv8.1.1228
Problem: Not possible to process tags with a function. Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes #4010)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/structs.h b/src/structs.h
index 40e87d550..c992e2a7f 100644
--- 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' */