Crate treetags

Source
Expand description

Generate vi compatible tags for multiple languages.

Uses the tags queries defined in the various official language parsers to detect tags.

§Usage

use treetags::Parser;

let file_path_relative_to_tag_file = "path/to/source_file.rs"; // file path relative to tag file
let extension = "rs";
let file_path_str = "source.file"; // file path relative to current directory
let mut parser = Parser::new();
let tags = parser.parse_file(&file_path_relative_to_tag_file, &file_path, extension);

Structs§

Config
Configuration options for the tag generator.
Parser
Parser manages the parsing configurations for all supported languages and provides methods to generate tags from source files.
Tag
Represents a Vi compatible tag

Functions§

parse_tag_file
Parses a tags file and returns a vector of Tag objects