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

Uploaded CPython 3.9+Windows ARM64

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

Uploaded CPython 3.9+Windows x86-64

tree_sitter_hygen_template-0.4.1-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.1-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.4.1-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.1-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.4.1-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.1.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f73e7ec6b3600edc8cc0773b792bd4cca9ce47e5a0084c2c4e8bf91e3fdf37dc
MD5 84bca193c8fbe85b4cc59f21e540cf89
BLAKE2b-256 a453421031393f4346c7782fc55b278170483831a21b25273a1d85d6e175b734

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.1-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 3cbe8ca546ecbb647372d95b1accc942d99f012fcb8cadbc201e2aab7618c2d4
MD5 9ca507b4a7155571deb1eb50a538010a
BLAKE2b-256 634cd4d9486808be8fd252bf679d2cb26d9e74df971d077b7e5cefc26ca3255e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1d9b9a026c41c0f17e47a61779626ffedeb0f531dfa3cc8fe6e55066308a631a
MD5 fc26b57fd6289d4de60c3b841d16a1cd
BLAKE2b-256 720198a91bcf3305fd11f6c7333d9e02f4b986166280288f04bc27c3b95980b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.1-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e28db2687b735229513c0c58990a479c86bb94743aec5599bc91bd5447499753
MD5 b330787057db467ae0ab3f19ef357395
BLAKE2b-256 e75fce4f159c76bcac9b74e3925b03669883fd90048f89773066514e0fb7e25d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 79ee7c8474a6b0ca59f0d80138b0b37c7425da3debf657b2dd4882a797858b6e
MD5 cf16b590d46bcc7d7ac03b99286c0be1
BLAKE2b-256 84fd078c962fd7c6929439a5de5860cd5ea4ab14b6697660c034e39aacd98658

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.4.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.4.1-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f6e44158c891960fb155ef1d6f1837163b84851d8ce33d75e4bacb0defdaf346
MD5 09f0a78363a4414f1b13008e9f66effb
BLAKE2b-256 fbfa62ef58103dad6653a9d9d78f880bc59deaeb390b05eee097647fe10a2489

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50ed309d3aaa0cfdd57718c7e0852f4141245908f054bb739e5f125119fff147
MD5 899fdf970c6a3ee80d7f9d8b35117fc0
BLAKE2b-256 32e1cc5241dccf69d499748074c0f145ca29a97357bda2094ca110e25cffdd2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.1-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0a9b1151f4b8e733ef2531d2427fa6e534182760780dd415f893474724eeb569
MD5 a1241b746adb8cd9a8b528371f79a288
BLAKE2b-256 fa4332cbcc9212ee6a720be6e87cf059e79a7921e8937115efebb397858c130f

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