Crate tree_house

Source

Re-exports§

pub use tree_sitter;

Modules§

fixtures
highlighter
locals
query_iter
text_object

Structs§

Injection
InjectionsQuery
Language
LanguageConfig
Layer
A layer represents a single a single syntax tree that represents (part of) a file parsed with a tree-sitter grammar. See Syntax.
LayerData
Syntax
The Tree sitter syntax tree for a single language.
TreeCursor

Enums§

Error
Represents the reason why syntax highlighting failed.
InjectionLanguageMarker
An indicator in the document or query source file which used by the loader to know which language an injection should use.

Constants§

TREE_SITTER_MATCH_LIMIT
The maximum number of in-progress matches a TS cursor can consider at once. This is set to a constant in order to avoid performance problems for medium to large files. Set with set_match_limit. Using such a limit means that we lose valid captures, so there is fundamentally a tradeoff here.

Traits§

LanguageLoader

Functions§

read_query
reads a query by invoking read_query_text, handles any inherits directives