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