Skip to main content

Module syntax

Module syntax 

Source
Expand description

Real-time incremental syntax tokenization, Tree-Sitter InputEdit AST updates, multi-line incremental grammar state machines for 10 languages, bracket pair matching, structural code folding, and syntax diagnostic extraction.

Structs§

FoldRange
A collapsible block of code in the editor gutter.
SyntaxDiagnostic
Lightweight structural syntax diagnostic emitted directly by the incremental syntax engine.
SyntaxHighlighter
Syntax analysis engine providing real-time Tree-Sitter InputEdit incremental parsing, 10-language incremental line-state tokenization, structural code folding, and diagnostics.
SyntaxToken
A highlighted syntax token with UTF-8 byte column span offsets within its line.

Enums§

Language
Supported language syntaxes for the Monaco-class code editor.
LineLexState
Persistent cross-line lexer state stored per line for O(delta) incremental re-tokenization.
TokenType
Token classification for semantic syntax highlighting.