Module ts

Module ts 

Source
Expand description

Support for tree-sitter incremental parsing, querying and highlighting of Buffers

For a given language the user needs to provide a .so file containing the compiled tree-sitter parser and a highlights .scm file for driving the highlighting.

Structs§

Parser
A dynamically loaded tree-sitter parser backed by an on disk .so file
Tokenizer
TsState
Buffer level tree-sitter state for parsing and highlighting

Constants§

SUPPORTED_PREDICATES