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.58.0.tar.gz (1.4 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.58.0-cp310-abi3-win_arm64.whl (687.4 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.58.0-cp310-abi3-win_amd64.whl (698.6 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.58.0-cp310-abi3-musllinux_1_2_x86_64.whl (778.9 kB view details)

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

tree_sitter_zsh-0.58.0-cp310-abi3-musllinux_1_2_aarch64.whl (773.3 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.58.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (784.7 kB view details)

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

tree_sitter_zsh-0.58.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (778.0 kB view details)

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

tree_sitter_zsh-0.58.0-cp310-abi3-macosx_11_0_arm64.whl (722.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.58.0-cp310-abi3-macosx_10_9_x86_64.whl (689.8 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.58.0.tar.gz
  • Upload date:
  • Size: 1.4 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.58.0.tar.gz
Algorithm Hash digest
SHA256 e9f05a7f70cf1fb5d3b5f03e42112ef224d7d6a52a5a7caa013df7189c4da06f
MD5 e52a23393f7bee89a4305542ef0459d9
BLAKE2b-256 d30c2ba88bdd0aa05c40f169bee6a3d99cdff131981ba4755b17ca8929eb4908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.58.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 cda514998b37fed7a1957020b06fb0ecfd4e8093f82bfe41e602ccbd7f8f70dd
MD5 3c84ed05bdc6560eb9aee32ffc745cbd
BLAKE2b-256 2d0f0adce5ebede5279ef7a360568c6d8583c8096cf2bbf08ebbdebf22e927ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.58.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f50298399976d0c093f68d93178987d36c2f32519e33737b713463054949edeb
MD5 17bf0d1f46813c5f7c1afac79331c1b4
BLAKE2b-256 120dc640472e2241dec858cd7e3ac71c8b9f39c13c8cc7f2f0d2f7982592d171

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.58.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ad69e0e547c1b291ab01301274f7adcb667b9e6817c4611bf1f830ba8db208b9
MD5 6651a181e2f65ec39b06d8dc1db6ba80
BLAKE2b-256 09da318a47aab8186ecdbd9ddb7442df1f02c893143b40cd6c18e6b4df8c326c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.58.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a20f565017b54a56aaaa16ca7ee8067cab730d899713c344491aaac5164de1bd
MD5 5b11ef5662de79f95d4206a8867e2c02
BLAKE2b-256 95876d939e09edf1eb8f096ec1de996967ded1489eed318c0c36d61a7928c9c1

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.58.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.58.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f687201e428c212f4bb553dbffc512c5a790d640a8e5b026c355f51631c4342d
MD5 51643f8907f850444c57d59472056d08
BLAKE2b-256 dc5989716b7519c4cf9c043b33b07e1a714c45ca8e7fa5ff0c3a8baf10b83e00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.58.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b7812c79fecfb63c765d2b37a650bcf4df3f67ca68c42fd0467a526023ec8006
MD5 879c83e1e61ca507b3224067a5e82af3
BLAKE2b-256 971ed1f7bb6b6ec9eb24be27c2c5d223cc1cf4574dd9c9384bca0aa4e1c42734

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.58.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 106ec8dac96e60e11b214705dc3364324a76d13f893d596509e74511f96dd069
MD5 e007a824ee60bacfe16149ddefb1d933
BLAKE2b-256 3591414468fc89a5cce21ca04a82bf63d08edcd3ca501d30f5a12c8562fa20f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.58.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e43d1cf34c87094e88fe830285bacce9a610309c012c1c566def521dacd7bec1
MD5 10795e14bdf0bbe164e11b6209a3c6aa
BLAKE2b-256 023becbe99af742b58a92bb8f746e854ce2e17938b0c8ef1701641c0f1278931

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