Skip to main content

Crate treetags

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);

Re-exports§

pub use config::Config;
pub use parser::Parser;
pub use tag::parse_tag_file;
pub use tag::Tag;

Modules§

built_in_grammars
config
Configuration handling for the tag generator application.
file_finder
Module for finding files and tag files in the filesystem.
parser
Parser Module
queries
shell_to_regex
split_by_newlines
tag
Tag Module
tag_processor
Module for processing source files and generating tags.
tag_writer
Module for writing tag data to files.
tags_config
user_grammars