neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

tag.h (1842B)


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