Skip to content

TreeSitterHighlighter

[<Class>]
type TreeSitterHighlighter =
    new (options: TreeSitterOptions) : TreeSitterHighlighter
    member TakeProblems () : (string * string) list
    member Warm () : unit
AssemblyNacara.Plugin.Highlight.TreeSitter
ImplementsIHighlighter

A highlighter backed by tree-sitter grammars compiled to wasm.

Constructors

Methods

member TakeProblems () : (string * string) list

What could not be done. Taking clears it, so each is said once.

The runtime comes first, since nothing works without it, then a line per language whose grammar could not be had.

member Warm () : unit

Resolves the runtime, before any page asks for a colour.