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