World of Warcraft TOC
Syntax for .toc WoW addon manifests
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for World of Warcraft TOC. The extension's id is wow-toc.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
zed-wow-toc — README.md
Zed language extension that wires the wow_toc grammar to highlight .toc files.
What this extension provides
- 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"]
Install (dev/local)
- 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/...
Files of interest
extension.toml
languages/
wow_toc/
config.toml
highlights.scm
folds.scm
indents.scm
languages/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"