Zed language extension that wires the wow_toc grammar to highlight .toc files.
- A language with
name = "WoW TOC"andgrammar = "wow_toc" - Highlights via tree-sitter queries (
highlights.scm) and optional folds and indents - File association via
path_suffixes = ["toc"]
- Ensure Rust via rustup is installed
- In Zed go to Extensions -> Install Dev Extension and select this repos root where
extension.tomllives. Zed will do the rest. - If something fails, open Zed.log or run
zed --foreground
If you're on Flatpak, the log and extension dirs are under app sandbox (same structure, different root):
~/.var/app/dev.zed.Zed/data/zed/...
extension.toml
languages/
wow_toc/
config.toml
highlights.scm
folds.scm
indents.scmlanguages/wow_toc/config.toml
name = "WoW TOC"
grammar = "wow_toc"
path_suffixes = ["toc"]
line_comments = ["# "]Language config must specify grammar = "" and use path_suffixes (not file_types).
extension.toml
id = "wow-toc"
name = "World of Warcraft TOC"
version = "0.0.1"
schema_version = 1
authors = ["Lekica <aleksa.cakic@gmail.com>"]
description = "Syntax for .toc WoW addon manifests"
repository = "https://github.com/Alexayy/zed-wow-toc"
[grammars.wow_toc]
repository = "https://github.com/Alexayy/tree-sitter-wow_toc"
rev = "64bb8008cb206452735236da04af293a84d0f9b2"