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 naming convention

Just add .hygen to the end of the file name, i.e.:

  • index.html.hygen
  • .gitignore.hygen
  • .tsconfig.json.hygen

Each implementation just need 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.

Tree-sitter directive

To 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

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

Uploaded CPython 3.9+Windows ARM64

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

Uploaded CPython 3.9+Windows x86-64

tree_sitter_hygen_template-0.4.2-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.4.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (20.3 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

tree_sitter_hygen_template-0.4.2-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.4.2-cp39-abi3-macosx_11_0_arm64.whl (11.8 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tree_sitter_hygen_template-0.4.2-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.4.2.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.2.tar.gz
Algorithm Hash digest
SHA256 eeedbcaa8ecc5fc81d6457b54108f4e42e81cef45f0f10edf531addaea324886
MD5 25d3678feea2243150a05f66cc02d2c0
BLAKE2b-256 8dafc54459dd6021d5087b3e26d03cceb2a8fb19e78dd793918e50da10bfc117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.2-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 51afbe79dcaf1c10700249d1d72d40e0bfe5faec418dc972f2f880579b804e0a
MD5 58c5471563f4dfef9382226cf2bbd55d
BLAKE2b-256 5dea5a90bcaaee4ccfed3056e3e6ca001bec9f3d4d21363713066eded59a70ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bc8282c2b569d7b16cbc81fe0b87f3bb83471b11cebb7ae40bab335b8af72e68
MD5 ce09b1541cc327ddb604f1d078e62e71
BLAKE2b-256 e5acd3cfcbbffd50e79d97fb0ef76ef82a2d4843a8d768971a07f5b63515b638

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.2-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 67b2e2b903e8fd77636ebc5cc55ec39316f668fdee0fe85ff066276ce7352a08
MD5 180b8083c04fc54ac291dc74446f9d4a
BLAKE2b-256 447d421429f26e20e3d20c237ef90bc0b7549e256c891e198de91ce613447ab7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4d8418931ef232923dfe966f64f72b8904e6435e2e1c971dc6eacda55cc2a13d
MD5 87f1b0e4482eb14336ae19183047dddb
BLAKE2b-256 2e4840a54e936151c335b3ed0d14fac3230af653dfdb827755bd8c13bca0e3f1

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.4.2-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.4.2-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3cf63d53454a80be9eb4ab19b96788c310c5dd3625b2f396908f85906f49ceb9
MD5 f2be864c2448b80d8dfdbf3cb7cf9e23
BLAKE2b-256 d9275c50903cf88a6294209e47ddb7d559e5576ae28b15258924927227c5a964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e39bd393dc2181671cadc26a244a474748e07ac7aff452ebf71606d165e56594
MD5 e13a1d786876a1ee208c111252c64e9a
BLAKE2b-256 246a08b039f13dc0244e66af61866b2974faabbfa123549c79a6197f6d2706fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.2-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6b1eeacde65ac14e7e2ada8916cc46fd009719151e334df8a196d303b61724d5
MD5 83e6cb63baab4c32eace783fd0f8f28d
BLAKE2b-256 2dd7e28f15db45bd17139ff41b51d110e864c95202859bfeee6cb24962c19df9

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