Re-exports§
pub use tree_sitter;
Modules§
Structs§
- Injection
- Injections
Query - Language
- Language
Config - Layer
- A layer represents a single a single syntax tree that represents (part of)
a file parsed with a tree-sitter grammar. See
Syntax
. - Layer
Data - Syntax
- The Tree sitter syntax tree for a single language.
- Tree
Cursor
Enums§
- Error
- Represents the reason why syntax highlighting failed.
- Injection
Language Marker - 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§
Functions§
- read_
query - reads a query by invoking
read_query_text
, handles anyinherits
directives