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

Uploaded CPython 3.9+Windows ARM64

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

Uploaded CPython 3.9+Windows x86-64

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.0.tar.gz
Algorithm Hash digest
SHA256 82c1112a7e60e3465181777f5b39d64270a93b07b044bf2a211784da0507b645
MD5 e1ea92d3bacfbbc36b8e5a4b89723d95
BLAKE2b-256 9bd7fc64682ffd788e54352baf15e265180dec8419a0125ad17fd256d5386c6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.0-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 38b7e46d254c5d8237608cba783277356370b93e0614c31ff9c4cc6638b5fc12
MD5 60e07b9aef829e5ad09c5f5dab075bd3
BLAKE2b-256 a85335b77db0373a5bc4c16e498952d241a97d8d6378bfb7c39889178d717149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2cdd87ff05878b8f161e810b3f60a720829c7d2721b7f4eaab55d2745760ef9b
MD5 8d7a977af4f806ccdb5a4372964c7442
BLAKE2b-256 d59caacb543125831d3fba346599f872f46fbcb51d0f09efb03c67a397a988ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c444ee6af28fc1fcd01667ec363a280daa26d61262c9bd917e661bda653b4616
MD5 22df5dd90408fd1c0865e7b2408b83dc
BLAKE2b-256 ef169a2eb36a679b3857d47833ea45cb70ee25860c7178046d9d8d740a42b1f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9f3a9c70f83c7753835b43d789ad069a447bfe56cb62c98f60fa459900961fc9
MD5 f78db29c1fc393d131e391f5816d15aa
BLAKE2b-256 bc962e2368963147483c90a71fd5c7dfef77dc9cf6d2cb97e569731c99fee83a

See more details on using hashes here.

File details

Details for the file tree_sitter_hygen_template-0.4.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.4.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edac2046a61a7f7c3e9e4f242844f8493f88df891c775b45a662334aa5e501f9
MD5 295021f545fc2e10a961276414086a7d
BLAKE2b-256 5be7b453541e71061aa84e553cc1c25d31b435ac71224b5188caa5ff80d00e0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7d07b3570e690d31682a145eba607f69d977c3ed6e565ce34fa089740722c55
MD5 d00308e3e94bda6d35d0e9e99aaedad8
BLAKE2b-256 23b3fb8e5ac7838a254dc085f9445f2b34b9f130e710edbed85c617a48d6a93e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_hygen_template-0.4.0-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 24e32a963c3412058c50ab0c05663e1f2dabb095a9a109b7c8b2634dcc3b4cc7
MD5 38289f45f9a5d77902d4e91d9c477f66
BLAKE2b-256 5bafb1d3eef6673a2ba8b8325d38e3667ef0ede978d4db6ff365045c4f984684

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