Crates.io | tree-sitter-hygen-template |
lib.rs | tree-sitter-hygen-template |
version | 0.3.2 |
source | src |
created_at | 2024-10-07 00:12:25.106768 |
updated_at | 2024-11-27 02:16:11.765835 |
description | Hygen Template grammar for tree-sitter |
homepage | |
repository | https://github.com/Hdoc1509/tree-sitter-hygen-template |
max_upload_size | |
id | 1399524 |
size | 85,223 |
Tree-sitter grammar for Hygen templates.
It extends the tree-sitter-embedded-template
grammar.
embedded-template
: highlight of ejs
tagsbash
(optional):
highlight of metadata.value
when metadata.key
is sh
javascript
(optional): highlight of code
nodeshygen.nvim
: plugin that integrates
this grammar to your Neovim
configuration.To be added
To be added
You can get the built files from the release
branch. If you
have specific instructions for your editor, PR's are welcome.
Thanks to content
node of tree-sitter-embedded-template
grammar, dynamic injections can be attached to
template body.
To make it easier to understand which parser
will be injected and which
filetype is used in template body
, the following pattern is recommended to
implement this grammar:
<file-name>.(ext).hygen
To implement dynamic injection, is recommended to create a predicate/directive with the following name:
#inject-hygen-tmpl!
[!NOTE] The creation of this predicate/directive varies for each editor