Mustache
Mustache syntax highlighting support for Zed.
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 Mustache. The extension's id is mustache.
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-mustache
Mustache syntax highlighting support for Zed.
- Tree-sitter: TheLeoP/tree-sitter-mustache
- Mustache manual: mustache(5)
- Mustache specification: mustache/spec
Developing
- Clone repository
- Open Zed editor
- Open Command Palette (Cmd+Shift+P on MacOS, Ctrl+Shift+P on Linux)
- Type "zed: install dev extension" and press enter
- Select this repository directory, then start testing
Tips
- To rebuild the extension, press "Rebuild" on the page from "zed: extensions" (Command Palette).
- To see the generated Tree-Sitter Query AST, open "dev: open syntax tree view" (Command Palette).
- You can test syntax highlighting with files in the
testsdirectory. These test files are borrowed from the official Ruby implementation (mustache/mustache) of Mustache in thetest/fixturesdirectory.
[!NOTE] If you rebuilt and uninstalled the extension, then tried to reinstall it, you may see an error. This can happen if a generated
grammarsdirectory already exists; delete it and try again.
License
This software is licensed under the MIT license (LICENSE or https://opensource.org/license/mit/).
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.