Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

zed-wolfram-highlighter

A Zed extension that provides syntax highlighting for the Wolfram Language, powered by tree-sitter-wolfram.

Features

  • Syntax highlighting for Wolfram Language source files
  • Bracket matching and auto-closing
  • Code outline / symbol navigation
  • Block comments ((* … *))

Supported file types

.wl, .m, .wls, .wlt, .mt, .nb

Installation

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.

How it works

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 generate

The 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.

Related projects

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages