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.60.4.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.60.4-cp310-abi3-win_arm64.whl (611.0 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.60.4-cp310-abi3-win_amd64.whl (620.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.60.4-cp310-abi3-musllinux_1_2_x86_64.whl (690.8 kB view details)

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

tree_sitter_zsh-0.60.4-cp310-abi3-musllinux_1_2_aarch64.whl (690.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.60.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (696.2 kB view details)

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

tree_sitter_zsh-0.60.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (694.1 kB view details)

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

tree_sitter_zsh-0.60.4-cp310-abi3-macosx_11_0_arm64.whl (654.8 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.60.4-cp310-abi3-macosx_10_9_x86_64.whl (619.5 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.60.4.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.60.4.tar.gz
Algorithm Hash digest
SHA256 bf53eed9689d4a16e26aab57525c16ca87e0943bd27cd1f53fd6e9965b5adc4c
MD5 c521432464c2559b70c27c2b5eee8d5b
BLAKE2b-256 8c52f7f065f20a90144f26e39a4df9dad266395cbd31af558fa9dac19523d216

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.4-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 6c9d498e8e413bdde0a259b70bc00e785ffef6ad9a664a57f65771d0f0c66a59
MD5 7ec965798ac2435369546a407fcec205
BLAKE2b-256 fb7a9afdfa7218e1f20d92b2e4037b6926fbbc86cd09cb483e180e1bfcaa09bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f394e4a210dc76176e18e58a02cc4d0f87e2fa96a2c193cd92eac359dd2d11bc
MD5 6e73f69e9b827a58e72e69c4fd181c84
BLAKE2b-256 3a0cdbe01a149bb7158b2c58bed1ebb1f630e6be9dfa39e325a8125a60c83de5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.4-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9a3c8512839da1efaebc34c18e21c31227f0b6f6ff6b2ab7ab76d865260a618d
MD5 52bf03cb6c4d09266cc4a730801779cc
BLAKE2b-256 7d9c2a6a17460a27f86962d5bc00fef36fe71afb86987ee70cff2eac68bbcf1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.4-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c085391a9ab2e5984bf3d49ae2949028774f58a8326b7aa43ea47da3fea3b3d6
MD5 78db3dd955efa76e5e0c246efcb18d7d
BLAKE2b-256 df7c24078c3dd7a8dbf0ec3ce2c0fddcacf9f9c754e770d6e54c93d7620ee5bd

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.60.4-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.60.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bda1b45bd5b328dc71a060b6d5c5aa0775ff09a70079d57ed8613379125cb1bc
MD5 94075e02250b840b5383d0ff9325ac58
BLAKE2b-256 a8af5e3e6947380f10e604481b36729162959f7a4cfa3134d46a7de7c59d22c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9734237afaa90c62408c984edde4c17451a62a789d337e93b06ab87dc8e99e19
MD5 b76834abbae70e474f6bdeccb3a4d7e5
BLAKE2b-256 a1e024a90ab65c4a1330fd5322c5ff3c331d5b81ebf52849fa1e1a93fa65dc36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f24b45824fc557c96a634f9b75f59bf73ee9e4dba616c24a7427b26a285aeba5
MD5 38b507a270ae7e3a19e78a5c8cf2a477
BLAKE2b-256 ce0543bbff366f76e560c23b2ba711c826652d2d9d3406626616b4c12e1b8e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.4-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1e777c941cb90468ad15908955806b5aaa1d795128cd6f0343e11f48253305b1
MD5 46afb4adb700cf3049927c662e027516
BLAKE2b-256 6fdadd6de95eb80ffc3bc915d5284f96103c28edb079237fdb66ea1270f373bd

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