Skip to main content

Hygen Template grammar for tree-sitter

Project description

tree-sitter-hygen-template

CI discord matrix crates npm pypi

Tree-sitter grammar for Hygen templates.

It extends the tree-sitter-embedded-template grammar.

Parser requirements

Usage in Editors

Neovim

  • hygen.nvim: plugin that integrates this grammar to your Neovim configuration.

Helix

To be added

Emacs

To be added

In General

You can get the built files from the release branch. If you have specific instructions for your editor, PR's are welcome.

Dynamic Injection

Thanks to content node of tree-sitter-embedded-template grammar, dynamic injections can be attached to template body.

File name pattern convention

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

Tree-sitter predicate/directive

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

Implementations

hygen.nvim

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree_sitter_hygen_template-0.3.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_hygen_template-0.3.1-cp39-abi3-win_arm64.whl (12.8 kB view details)

Uploaded CPython 3.9+Windows ARM64

tree_sitter_hygen_template-0.3.1-cp39-abi3-win_amd64.whl (14.1 kB view details)

Uploaded CPython 3.9+Windows x86-64

tree_sitter_hygen_template-0.3.1-cp39-abi3-musllinux_1_2_x86_64.whl (18.7 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

tree_sitter_hygen_template-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (20.0 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

tree_sitter_hygen_template-0.3.1-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_hygen_template-0.3.1-cp39-abi3-macosx_11_0_arm64.whl (11.5 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tree_sitter_hygen_template-0.3.1-cp39-abi3-macosx_10_9_x86_64.whl (11.0 kB view details)

Uploaded CPython 3.9+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_hygen_template-0.3.1.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2afa6c634c96ceaf8c48736ea17d1f8850b90590e08ef51929ae95b12b0a1110
MD5 91b9498531fa8ee741cdbd6c0364b0a4
BLAKE2b-256 45c11ad928c300cbf69ae9bcbb00e09e55481b745c7872d5c0bd024eaa9ec9a9

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.1-cp39-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 15dc77ba86c0479d316d1a2c8c7f6b35e2987e26ba3a1ff0e42e2fb6fadccdfd
MD5 c6a40cae2fda86617184bd0c7e779645
BLAKE2b-256 33320e4a54f7821dc3fa77b088198ab50924aaa89a4715ba39cf0bb2726fd497

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.1-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c48fa34be7e749497fb667e44e4e6f6b64bde6b7ad03807bc432c5fae9aeba1c
MD5 f7661023aa821086b2db4c902bb5285d
BLAKE2b-256 038ca5416b5841c6d9dc3436c7608fccc029a54f2f0153521def5fbc185fc4f5

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.1-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d322d9a306a93d8cda4e3ba0c5cc480e6b0d8ef369316eb3d2834321edc4426f
MD5 2d4c3164c741a453ab34624e4a9345e9
BLAKE2b-256 c6750949fd64fe72e9574c6ad2b0cfed4167340aeccece335d79d860974b0284

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ecd4016d1fc3e710d6b7183676c9647e9b46d04d08547347e345d491504eeec
MD5 70970b0ffaee52c36d4a6f07bd59e154
BLAKE2b-256 368a435992faef62b19904ab852cacf66985841fa040b1386bea3fbedf0f748b

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.1-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af09ce60096eba5fb7da534968080d65ad947aa1f74ce042bcbf929a3088f3ed
MD5 391c5f7ea39c28e4730a5586ce387083
BLAKE2b-256 7074eda707ba5f15b5b6fc459a9034ff2385c950404237721eed0a9d55cbaf35

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fbd50ee4036bdc9d68730704d4f2a345aca80a27994d3ae1418b060e6cd4a2a
MD5 53d5bd13d0ed84eef73245b369f58c0c
BLAKE2b-256 27069db2c14b9019f05d1312a7b476aa390f772252c3097ba747dda6ab0564e1

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.1-cp39-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.1-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2fffd634e87432a47031f98dd95f671c95b11f47e86c8c56970958a42d6c7f19
MD5 cd9b7ecd2ce4f6e836363322097a0eb7
BLAKE2b-256 a2d24301678b8c9632a143f7d31b899ffe86bdee93aa9ea14e70ac0ff25a60bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page