Skip to content

Alexayy/zed-wow-toc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Syntax for .toc WoW addon manifests

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published