Language support for the Maude system in VS Code: syntax highlighting, code folding, and — via a bundled Language Server — real diagnostics, an outline, and go-to-definition / hover / completion.
Features
- Syntax highlighting & folding for
.maudefiles (modules, comments, etc.). - Diagnostics: runs the
maudeinterpreter on your file and shows its errors/warnings inline. - Outline (document symbols): modules, sorts, ops, equations, rules, …
- Go to definition / hover / completion for
sort/op/var/module names, including module parameters and the base names of parameterized modules/sorts. Names defined in files reached viaload/inand in the Maude prelude/library are indexed too.
Requirements
- The
maudeexecutable must be installed and on yourPATH(or setmaude.path). Diagnostics run the real interpreter. No separate Node.js install is needed — the language server runs on VS Code's built-in runtime.
Settings
maude.path(defaultmaude) — path to the maude executable.maude.diagnostics.enabled(defaulttrue).maude.diagnostics.timeoutMs(default5000) — maude is killed after this.maude.libPath(default empty) — Maude library directory (containsprelude.maude). If empty, falls back toMAUDE_LIB, then a path derived from the maude binary.
Known limitations
Navigation is heuristic (name-based, not type-aware): symbolic mixfix operators,
find-references, and type-resolved lookups are not yet supported. Block comments
***( … ) are matched with a paren counter.