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.4.tar.gz (11.1 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.4-cp39-abi3-win_arm64.whl (13.1 kB view details)

Uploaded CPython 3.9+Windows ARM64

tree_sitter_hygen_template-0.3.4-cp39-abi3-win_amd64.whl (14.2 kB view details)

Uploaded CPython 3.9+Windows x86-64

tree_sitter_hygen_template-0.3.4-cp39-abi3-musllinux_1_2_x86_64.whl (18.9 kB view details)

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

tree_sitter_hygen_template-0.3.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (20.2 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

tree_sitter_hygen_template-0.3.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.0 kB view details)

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

tree_sitter_hygen_template-0.3.4-cp39-abi3-macosx_11_0_arm64.whl (11.7 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tree_sitter_hygen_template-0.3.4-cp39-abi3-macosx_10_9_x86_64.whl (11.3 kB view details)

Uploaded CPython 3.9+macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.4.tar.gz
Algorithm Hash digest
SHA256 f01b615cff73a4742f671a6d5c278fd4e7cc199c07b65c0bd18729465eb8a255
MD5 e64a464894bd49fa7aabbbd65501b9ad
BLAKE2b-256 f9be5d26825d989a1c575c065c5bdac89ac6e2fc388d6354cc33ede9f399ee5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.4-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 606f2e0517e26bcb57c13da095f048298ed24166fba670270cf2011aa1f4aa99
MD5 e7c2f0ef6115b18907800c88a4efd58d
BLAKE2b-256 aeaa076f6cc88d1726b0fd4ff495c72d0aede617ec3b7d7a5f116596cd144fb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.4-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 51567b2eea8a895ce8a92e3399e554e0abff4d7370325f8d01648c15dee47b21
MD5 d44e0411b67eae92a56d48176a1288bd
BLAKE2b-256 96625a105ccebdd60a676170524a0c5edb0667510734c95211f23a03cbcb1d56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.4-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 be3e7463f1074ea3c817c782a0028531229f695aa56a5d2ab317c58cea4acc4e
MD5 5a9637988a7abded6c29f5b1189c47a8
BLAKE2b-256 ea2b6235940982041bb326ee6417a022c75b9004b4919a6d5d5a0e8f8706aa42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d3cfb3a7fb300802609aa22c44c5ad1923866f6d96cfbff33ea0efd316aae307
MD5 bc341de859b59e3ef83145f4e9ea8b21
BLAKE2b-256 5fb269eba1023a7917f3382092b365818f91f7e091201c0e24f29a8daafb9070

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.3.4-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.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1aa69719c350b9fc237ca218ba24afba7092c68a98c3fed0687dacf31386e403
MD5 fa3c5a29be4a90e95441adf9f6697416
BLAKE2b-256 477cc9b037d85683ac1b61afecf055507167f6d319d7c796e2248a8ed8e04ad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.4-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11c0e914b39b524898aebcdf9ea26e18eff55b7c1d41cb3f17fa75d6865a9154
MD5 f10ecc3a0a336cb14116dc6699553459
BLAKE2b-256 6c8a5da3a8c06e571c62ab8832a15e29a4d0cd93ad652a647859c28d3b399240

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.3.4-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7ac647aa817d521c258417c22cb8b0d68bffdd9c215e0386a6889f2a33babd8a
MD5 5d84b6bb53bb2c8ceaae356dbd140c2a
BLAKE2b-256 003d23a42a46012fb543f50df4ac9cb6fda38a8e4af3e1bfad4116b5e5aab670

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