tree_sitter library
Official Tree-sitter parsing and query captures on native and web platforms.
Classes
- SyntaxCapture
- A highlight query capture, including explicit query priority when supplied.
- SyntaxNode
- A syntax node. All offsets count UTF-16 code units, as Dart strings do.
- SyntaxSnapshot
- A copied syntax tree, independent of the parser's native tree lifetime.
- TreeSitterRuntime
- Initializes bundled official parsers. Web consumers await initialization before creating synchronous parsing/highlighting sessions.
- TreeSitterSession
- An owned incremental parser. Dispose sessions when their editor is closed.