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.0.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.0-cp39-abi3-win_arm64.whl (12.8 kB view details)

Uploaded CPython 3.9+Windows ARM64

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

Uploaded CPython 3.9+Windows x86-64

tree_sitter_hygen_template-0.3.0-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.0-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.0-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.0-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.0-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.0.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c467382b13b0aa2159fd66567f4b1c63cdeea204ba77cbfc03f32d70389cec25
MD5 3468ddc353f6d390bba81e4e727894eb
BLAKE2b-256 fb00dc07e977d50a499fba7735378003c6cc59a3c0d81e9f43c28bad41c9b04f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.0-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 0fcaf9a978ee65a5301de9361dbbffc045660b8fe67041c538859eab007387ea
MD5 0f27f970ed28c8f279e79206ead79ea9
BLAKE2b-256 2b61bc0dd88073abc60269e77aeb17f66a860b999bf199c9bdd84d0f1740c487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 78f03586d3f60834e9ba56766bebd099a7e4bbd49df7a7e1df34d070249a121e
MD5 1c06d264e4f1b7676350b5b4863c2744
BLAKE2b-256 c1869de486c12e6e287f135fa9f9d50065babc1ce9b816a0019ee74d68075cfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 16bbba7da8b70e3b1bfc11f9fe4f42a232d6046549c44580fca8ffbfdbf0e61b
MD5 66d89b23c10251d82f29c3c066fc296a
BLAKE2b-256 d79e6c7c31f54775585726feb2cba9ff30504b6db020b17b78c16f8dc2e824e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b01dde2b46b10dbd33eac33eb066878e88af55ff1e6a5f3236f51781b70a84f4
MD5 6b9339e41a4898bc9fb2324674c274a9
BLAKE2b-256 c77d06f6fe180594f1e312f67bbd82eb92a271668bcc1352b008c70dcb3ab174

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.0-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.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0321b0de9d7b380816fd6c874d019cfa0b0da4f6f3eb12443041db0b867ab62c
MD5 79aeb55e4540b724d2d23dfa9fafe54e
BLAKE2b-256 faeefb879b4eb1a38ead54ca76408056585b546343a79fd08875147c6a44d1f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b6a3183c3f8102e6d5aac0966054cd036c076c8a091f351fbae734c3e330f70
MD5 81287a1cde1bf8cb6b12229adac6b788
BLAKE2b-256 b68cc08452b39a63b40702df22aeeba07c766b73c2a296005174a13d25e1c539

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.0-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3998775c00b7f472b1aeb1955d3135a84f3b20f39628bbfe91b18b5e18ef648d
MD5 aeb4e954cd191b2ba21af75348373b5e
BLAKE2b-256 a8349648e52b003363f1a4a7a562d697774593163322f98702b14c410d848a25

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