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.