A Zed extension that provides syntax highlighting for the Wolfram Language, powered by tree-sitter-wolfram.
- Syntax highlighting for Wolfram Language source files
- Bracket matching and auto-closing
- Code outline / symbol navigation
- Block comments (
(* … *))
.wl, .m, .wls, .wlt, .mt, .nb
Install Wolfram Language from the Zed extensions registry
(zed: extensions, then search for "Wolfram").
For language-server features (diagnostics, completions, hover, …), also install the companion Wolfram Language LSP extension, which requires a local WolframKernel.
The Tree-sitter query files under languages/wolfram/
(highlights.scm, brackets.scm, outline.scm) drive highlighting. The
highlight and bracket queries are generated from the
vscode-wolfram TextMate
grammar — do not edit highlights.scm or brackets.scm by hand.
To regenerate them:
npm install
npm run generateThe generator (tools/generate-highlights.ts) reads the vscode-wolfram TextMate
grammar, expands its compressed symbol alternations, maps TextMate scopes to
Tree-sitter capture names, and writes the .scm query files.
- tree-sitter-wolfram — the Tree-sitter grammar used for parsing
- zed-wolfram-lsp — Language Server Protocol support
MIT