Semantic Highlighting in TLA+
summary
A tree‑sitter grammar for TLA+ provides an error‑tolerant, incremental parse tree that highlights by actual node types rather than regexes, supports queries to distinguish variables constants and operators, enables code folding and lint‑style checks, and runs in the browser via WebAssembly. Live demos show on‑the‑fly conversion to math symbols with unicode live translation, a published npm/rust/TS package and tree-sitter bindings, and a working Neovim plugin that adds semantic highlighting, folding, and typing abbreviations.
AI-written summary · about
