tag.h
Go to the documentation of this file.
1 #ifndef NVIM_TAG_H
2 #define NVIM_TAG_H
3 
4 #include "nvim/ex_cmds_defs.h"
5 #include "nvim/types.h"
6 
7 // Values for do_tag().
8 #define DT_TAG 1 // jump to newer position or same tag again
9 #define DT_POP 2 // jump to older position
10 #define DT_NEXT 3 // jump to next match of same tag
11 #define DT_PREV 4 // jump to previous match of same tag
12 #define DT_FIRST 5 // jump to first match of same tag
13 #define DT_LAST 6 // jump to first match of same tag
14 #define DT_SELECT 7 // jump to selection from list
15 #define DT_HELP 8 // like DT_TAG, but no wildcards
16 #define DT_JUMP 9 // jump to new tag or selection from list
17 #define DT_CSCOPE 10 // cscope find command (like tjump)
18 #define DT_LTAG 11 // tag using location list
19 #define DT_FREE 99 // free cached matches
20 
21 // flags for find_tags().
22 #define TAG_HELP 1 // only search for help tags
23 #define TAG_NAMES 2 // only return name of tag
24 #define TAG_REGEXP 4 // use tag pattern as regexp
25 #define TAG_NOIC 8 // don't always ignore case
26 #define TAG_CSCOPE 16 // cscope tag
27 #define TAG_VERBOSE 32 // message verbosity
28 #define TAG_INS_COMP 64 // Currently doing insert completion
29 #define TAG_KEEP_LANG 128 // keep current language
30 #define TAG_NO_TAGFUNC 256 // do not use 'tagfunc'
31 
32 #define TAG_MANY 300 // When finding many tags (for completion),
33  // find up to this many tags
34 
35 // Structure used for get_tagfname().
36 typedef struct {
37  char_u *tn_tags; // value of 'tags' when starting
38  char_u *tn_np; // current position in tn_tags
40  int tn_hf_idx;
42 } tagname_T;
43 
44 
45 #ifdef INCLUDE_GENERATED_DECLARATIONS
46 # include "tag.h.generated.h"
47 #endif
48 #endif // NVIM_TAG_H
tagname_T::tn_hf_idx
int tn_hf_idx
Definition: tag.h:40
types.h
tagname_T::tn_search_ctx
void * tn_search_ctx
Definition: tag.h:41
tagname_T::tn_tags
char_u * tn_tags
Definition: tag.h:37
tagname_T
Definition: tag.h:36
char_u
unsigned char char_u
Definition: types.h:12
ex_cmds_defs.h
tagname_T::tn_np
char_u * tn_np
Definition: tag.h:38
tagname_T::tn_did_filefind_init
int tn_did_filefind_init
Definition: tag.h:39