Skip to content

Type to search extensions

World of Warcraft TOC

v0.0.1

Syntax for .toc WoW addon manifests

Updated 11 months ago
35k downloads 1 star Repository ↗

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" and grammar = "wow_toc"
  • Highlights via tree-sitter queries (highlights.scm) and optional folds and indents
  • File association via path_suffixes = ["toc"]

Install (dev/local)

  1. Ensure Rust via rustup is installed
  2. In Zed go to Extensions -> Install Dev Extension and select this repos root where extension.toml lives. Zed will do the rest.
  3. 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"
ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated