Adds support for GABC/NABC (Gregorian chant notation) files to Zed.
- Syntax Highlighting — Full highlighting for GABC headers, pitches, clefs, neumes, bars, alterations, style tags, NABC notation, and comments.
- LaTeX Injection — TeX code inside
<v>…</v>tags and verbatim attributes ([nv:…],[gv:…],[ev:…]) gets LaTeX highlighting. - Bracket Matching — Auto-matching for
(),[],{}, and<>. - Code Outline — Headers appear in the document outline/symbols panel.
- Language Server — Diagnostics, hover, completion, and document symbols via gregorio-lsp.
For Language Server features (diagnostics, hover, completions):
- Node.js ≥ 16
- Install gregorio-lsp globally:
npm install -g gregorio-lsp
Syntax highlighting works without any prerequisites.
Search for "Gregorio" in Zed → Extensions.
- Clone this repository
- In Zed, run
zed: install dev extensionand select the cloned directory
This extension uses tree-sitter-gregorio (v0.3.0+), a complete tree-sitter grammar for GABC+NABC notation compatible with Gregorio 6.1.0.
MIT