Skip to main content

Zsh grammar for tree-sitter

Project description

tree-sitter-zsh

CI discord matrix crates npm pypi

Zsh grammar for tree-sitter.

[!NOTE] this is not the same as tree-sitter/tree-sitter-zsh which has been archived, but rather a complete reworking starting from the bash grammar.

Known issues:

Glob qualifier delimeters for 's::' and 'n::' and 'b::' must be ':' rather than arbitrary paired chars.

Installation

For neovim, add the following to your config

    vim.api.nvim_create_autocmd("User", {
        pattern = "TSUpdate",
        callback = function()
            require("nvim-treesitter.parsers").zsh = {
                install_info = {
                    "https://github.com/georgeharker/tree-sitter-zsh",
                    generate_from_json = false, -- only needed if repo does not contain `src/grammar.json` either
                    queries = 'nvim-queries', -- also install queries from given directory
                },
                tier = 3,
            }
        end,
    })

In addition to enabling treesitter for zsh files.

Development

Install the dependencies:

npm install

Build and run the tests:

npm run build
npm run test

Run the build and tests in watch mode:

npm run test:watch

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_zsh-0.41.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_zsh-0.41.0-cp310-abi3-win_arm64.whl (673.2 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.41.0-cp310-abi3-win_amd64.whl (680.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.41.0-cp310-abi3-musllinux_1_2_x86_64.whl (736.3 kB view details)

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

tree_sitter_zsh-0.41.0-cp310-abi3-musllinux_1_2_aarch64.whl (735.3 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.41.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (740.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

tree_sitter_zsh-0.41.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (737.7 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

tree_sitter_zsh-0.41.0-cp310-abi3-macosx_11_0_arm64.whl (718.0 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.41.0-cp310-abi3-macosx_10_9_x86_64.whl (678.4 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_zsh-0.41.0.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.41.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tree_sitter_zsh-0.41.0.tar.gz
Algorithm Hash digest
SHA256 72bf2e94099ea34eb165b097d418297a53ff1384304ec18adb69d9daf35c4c52
MD5 83aaec4c5a3fb1615dc3495ad111889d
BLAKE2b-256 86a4213b2c893f0f4dd746cc05ff71ffd4af8bc34b8f890954d1bac221a340f2

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 cb485f630235e4417897b5bb9c36353216143462010320ddcfdf069670ffeb69
MD5 ed5bfba353e50e063908f5e57f0e9b67
BLAKE2b-256 9be5fc1a6eeabb01efe1909740cef09d58145e59adcd1ce7da32c3a3485282b9

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 291c52be4993ce9fdf078accc2d3aff1a849cbe078b8e20682813c65825e9298
MD5 8b518cc13f1a45e5d3553f5f5881fa7f
BLAKE2b-256 4a0a76d51c6264c4a65458d1be79ac5058e1c7f8be08cd84acf30a9dd984b823

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 02ade6820a4a516c22961153d24bbbfec31d0a4cc4c7df0af7848476f9a82f5e
MD5 9e9540744b5983712d35f9193ac4f8f2
BLAKE2b-256 7acd9509f82dbcaa151c4574799fd88e8b210c921f359357a7d653df07a9d55f

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e05c6c7b16a4fcb1965f21dc8bcb06e1e2cebfd415e722c7010486c7b8f6a0dd
MD5 a191487138945eb25a861dfa2be1b722
BLAKE2b-256 2c61c85a00cea09d121dc43997d5d90c61b0d5865ef16a5fb9cd64afc4152aad

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1c59005237d826e41c0a884361639acda67da369bbb51ab8da221e589e5a5bd3
MD5 75d6eb1ca6fc5a49b0a12bfe78194ac0
BLAKE2b-256 3f3787495f4bff20904a079556489d9d4679cf44495f2d534c828a9e0020ad33

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 be5a002be1f956e14ca254ad86cbcb82f235861724a1b77c82587b9a504b1b0d
MD5 28cc4789a7eea9035d582b9b616429ca
BLAKE2b-256 ba5404707c4e60c9d7449f0f1b06117f2d0692be0aedb08e2c11e13f972271a4

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af11bd789b3ce2ca95815886af87394af5b276a4773d9be748e8b90117b79371
MD5 e71be14262e736b24f1a2d24e30c2e6c
BLAKE2b-256 2cfcc9a2cd4bd330a5ea878fdef18dfa18225db0a7a8a907fd6a83a61815b859

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.41.0-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_zsh-0.41.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1cdf693a550615b5964b45b3f9cc96c28da0de2b7c642f7307b20479edb95ae7
MD5 8e36f62317c5ea00f918a3474a22706d
BLAKE2b-256 6f36a9624dd3a99e0127095c3ee4eae2ad01c3e2acce11f8d635d27e4c3a40d9

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