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.37.0.tar.gz (1.6 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.37.0-cp310-abi3-win_arm64.whl (624.5 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.37.0-cp310-abi3-win_amd64.whl (629.0 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.37.0-cp310-abi3-musllinux_1_2_x86_64.whl (685.3 kB view details)

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

tree_sitter_zsh-0.37.0-cp310-abi3-musllinux_1_2_aarch64.whl (684.0 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.37.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.3 kB view details)

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

tree_sitter_zsh-0.37.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (687.1 kB view details)

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

tree_sitter_zsh-0.37.0-cp310-abi3-macosx_11_0_arm64.whl (663.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.37.0-cp310-abi3-macosx_10_9_x86_64.whl (628.5 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.37.0.tar.gz
  • Upload date:
  • Size: 1.6 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.37.0.tar.gz
Algorithm Hash digest
SHA256 3343f6316e5d1a11f024148b29b9937ecb94a39ec50628a5bc04e4e04cd91364
MD5 7f9ba7ca7beaf1856fcd02baf85958b7
BLAKE2b-256 7333259ac0651edbc5c94e2f2c796bfa19762d26051e8df045f1d428a850007e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.37.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 71ad49c28ba0ae67f7302fce522f168dcb90c11f31ab14db429e76e42a7a14ce
MD5 ee85bb3c2fe7e150072cbf52c4aa5bcf
BLAKE2b-256 957e1339a871bb0a0fd10e343265c3fd401bedad9f68c62fd2e963be59a70921

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.37.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6cff1e7a27855b4fc278435a48e3ee8fcfe217bc9f0acd7386f01311e362d4e7
MD5 70599c6c38c6d8bece4c6e2efed35dd1
BLAKE2b-256 bdf55cbbd6237bdca8218c5fec719e2aa430ac3f893c5fe3eb15a6fbc855acd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.37.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 77daa8d0cb302782c212d7dc8f0a936c11a83ad11dc2cc937ff473888ded00d6
MD5 dc14dfddbafbc99cf7932e3603ef9c03
BLAKE2b-256 265c15c436efa57eab7b4942647f5d1fa700765301f301c9ca5cb6c782b07442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.37.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a112260e0a1d6511441d218801ffb90440329c52433032c567f3a85cea170cf2
MD5 80acc6983f198e4b55559f7e5963a5c5
BLAKE2b-256 2c9dce66ac870c68d17ed3820659f5683e494ef2cd451001bcd23681c62b6c40

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.37.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.37.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4d711fd424b576fd47fd3344714ed1304f200c03851ceb1f684a29e71b5293e6
MD5 ccfb22826bf4e229c02293635075282f
BLAKE2b-256 6d5d2f3591406378ee5729cd6068b8d4c773af6bf6113217ad2ca23ded88f340

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.37.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e8bc0245fa9776c8dd9cbaad5aaaf7f242f1fb7f165b86160f0dcac496e91835
MD5 97a3e9c738f09e00859a2e2b45dd1560
BLAKE2b-256 c29fa0022e8e789410377b205787f37588b9ebecb9ff198d41830bef247bf83f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.37.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cca06540339ba8a9a292147d1dbfe4804c1b4e642e4e5b6238ed3c5843f3caa2
MD5 aed0bee05436dd4f2ad5b53dfc6b43b4
BLAKE2b-256 818fec12ea89752a6e59f4051346b5c23efab61b943f20ee60162faac5cc523a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.37.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fb0fd49c0cd54de2553af36a8bbfee8dd7f8f9589c5da3591f929db18ab3606e
MD5 d53b3333af75b28242a9874ed9155ce2
BLAKE2b-256 4fe05a7e31cffc73373292ea108bf2c46622377a4a7a65e661d8a93cba9aef98

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