Skip to main content

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

Release files for tree-sitter-zsh 0.63.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tree-sitter-zsh 0.63.4
File Size Uploaded
tree_sitter_zsh-0.63.4.tar.gz 1.4 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for tree-sitter-zsh 0.63.4
File
tree_sitter_zsh-0.63.4-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
tree_sitter_zsh-0.63.4-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details
tree_sitter_zsh-0.63.4-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
tree_sitter_zsh-0.63.4-cp310-abi3-macosx_10_9_x86_64.whl CPython 3.10 abi3 macOS 10.9+ x86-64 Details

Total release size: 6.6 MB

Release files / tree_sitter_zsh-0.63.4.tar.gz

Download URL tree_sitter_zsh-0.63.4.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
08cd7872192396f67063fdee44566f38b91119c86fc1064e2b724862b229a37f
BLAKE2b-256 checksum
How to use checksums
87f45f8fe541b8a8b01b8d38d05d06013d9dc834f86eb1b1af3a4e18537a78e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-win_arm64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-win_arm64.whl
Size 609.0 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
a93dc48733f22662f062222ff08b093815ad7505d2bbf4dfca0de3fb2f83439e
BLAKE2b-256 checksum
How to use checksums
5f83bddf7eb52565b7e088953b97506ae8dc3b2f603ffa40b2bbb792a99c9c35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-win_amd64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-win_amd64.whl
Size 618.2 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
98fb2c190ac2c4e1a11eb971d1ef819e42f90dd453cf362f2284664a8f5b6dc4
BLAKE2b-256 checksum
How to use checksums
db26af058249eb3d4f783a954e1b50acb1f5fb8e4ec76f8761f79c5b274ae80d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_x86_64.whl
Size 687.9 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
81800956053959923277e8bdc4ef68915dfbf727599371844229e81c059c9cc0
BLAKE2b-256 checksum
How to use checksums
bdb7bbb707733f273a86304137ec022ea7e035d1ed4d98648120649bdb4625d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_aarch64.whl
Size 687.5 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
cc1066f8b573fe82f9c5f249dbc1a3f807be63e824c3fde61d805cd4cb1e7299
BLAKE2b-256 checksum
How to use checksums
bd8a2354eef5a033a27116486834c1c00db3f43ed908441f9f09ff3c7c394af7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 693.2 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
97065a8e812501b9c9298c36fb2fa5d30fcb7902a9be4dd928b4a78267102019
BLAKE2b-256 checksum
How to use checksums
b85a6391d526de881301393071eb9bc7d5eec2e01dd946bc89f8bacc62aca483
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 691.1 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
631a7866ae2b57f20c81179560e47ab9ab0f0616eaf096e39baa39efef4ac193
BLAKE2b-256 checksum
How to use checksums
e6d8da42fe8c9113aeb82072d52e8406f22985a5339f158af137439187303d84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-macosx_11_0_arm64.whl
Size 652.3 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
140c83f4e63496645036ac36b227e27f4abeb21b95587067cf3954579a0f7c33
BLAKE2b-256 checksum
How to use checksums
a7d591aec2d5fba2398bc0d3e6cea71d4b84315715e6c6f70cd7127ec7adad23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / tree_sitter_zsh-0.63.4-cp310-abi3-macosx_10_9_x86_64.whl

Download URL tree_sitter_zsh-0.63.4-cp310-abi3-macosx_10_9_x86_64.whl
Size 616.8 kB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
8f798aebd52f7581f8816b066257315abed1c3d9843a4d4bf6c488e878a22b94
BLAKE2b-256 checksum
How to use checksums
be840af3f41d583274bdbc34f7afbd1e5415ab31218b91d5848207b311bfb9b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page