
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
tree-sitter-hygen-template
Advanced tools
Tree-sitter grammar for Hygen templates.
It extends the tree-sitter-embedded-template grammar.
bash (optional):
highlight of metadata.value when metadata.key is shjavascript
(optional): highlight of code nodesregex (optional):
highlight of metadata.value when metadata.key is after, before or
skip_ifhygen.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.
Just add .hygen to the end of the file name, i.e.:
index.html.hygen.gitignore.hygen.tsconfig.json.hygenTo implement dynamic injection, is recommended to create a directive with the following name:
#inject-hygen-tmpl!
[!NOTE] The creation of this directive varies for each editor
This directive will the responsible to remove .hygen from the file name and
use the rest of the file name to retrieve the parser to be used for dynamic
injection. See implementations for more details.
[!WARNING] Ignore dynamic injection for
*.ejs.hygen,*.erb.hygenand*.hygen.hygenfiles to avoid weird behaviours
Once created, add it to the end of injections.scm file that will be used by
the editor:
; dynamic injection
((content) @injection.content
(#inject-hygen-tmpl! "")
(#set! injection.combined))
FAQs
Hygen Template grammar for tree-sitter
We found that tree-sitter-hygen-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.