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.56.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.56.0-cp310-abi3-win_arm64.whl (679.4 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.56.0-cp310-abi3-win_amd64.whl (691.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.56.0-cp310-abi3-musllinux_1_2_x86_64.whl (772.0 kB view details)

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

tree_sitter_zsh-0.56.0-cp310-abi3-musllinux_1_2_aarch64.whl (767.5 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.56.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (779.2 kB view details)

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

tree_sitter_zsh-0.56.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (771.8 kB view details)

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

tree_sitter_zsh-0.56.0-cp310-abi3-macosx_11_0_arm64.whl (714.7 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.56.0-cp310-abi3-macosx_10_9_x86_64.whl (681.7 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.56.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.56.0.tar.gz
Algorithm Hash digest
SHA256 03ca8d1f6222acc02a0ae0c001a53bed5a4dd666eedd2a613185677ac4d1ae1a
MD5 85c8a3e8325bd453d2f47735f298eb6b
BLAKE2b-256 592fecb47f3641a261209c56ca23dd303ff430b067a516622b21c02e3fbbc18f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.56.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 8a341daeed8f0c0b7b1b0645a9cde8f6aac2c0863e0a704d473f4d9f762ababc
MD5 a244f84373b76a16d0b5ffec7bc13ea6
BLAKE2b-256 8f2b6ad1968cc1a0899b29314e351c10e7d4630f7e1a05a73e20c5fa89d27797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.56.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4c8bfa80e66bf417bcd560d6ef7bc5afe77813449454e1c81067cecc23efdeb8
MD5 9ee07421a675d4a7ee3167a6d89a9308
BLAKE2b-256 2dde6384879b46138ed1a8f44e6a42f506e3fa7536147d6792f6e94166f9266c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.56.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e09a95c0e97a7aa11596b1054dfe04e1f56f17917f6f34d74882cef168ada9aa
MD5 83af2986e47ad634e83571fee6459050
BLAKE2b-256 a213eba8fdac5aae3b612f4e09d56a42777492d4ad9a1f6e4e607203cf0d6cb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.56.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e4a7281b96741fc30e5ec849347c6359c6d5209c813803ad384947637d47d0b0
MD5 24aecaceb916dd0633f7beef913758c1
BLAKE2b-256 485b2c941f1b861cba51cbe3e943095bfaea3521e6e0f50aa92f083459aa48da

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.56.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.56.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bdf09b7ceb58775a852511c3032592b981cc743577f21f94c1a74381fe6a590
MD5 e2a2d4a52d282cbf533fd3e862b6ccb7
BLAKE2b-256 cbb39f43ce2b4650527a4f127f0872f70d6ee5e12d1dbd12ee92096b5873a8f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.56.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2623a7bbaaa30551a4cb5199f6c22b0ebf972153373332cfb948da41f73a3c91
MD5 3bcd88f0dedae2455caf10c97b40fc2d
BLAKE2b-256 5079a642b54ee66d4a149367427957165d18458fc3022ff59a29173b9b1c2ff0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.56.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a309d8194caeeb60f31ab5cedc0682a43cd9e82a4d0359bb95f63941d779e614
MD5 0eed138a1e0543b6e3fb731ab3607f74
BLAKE2b-256 4c4fe95dad35a1afa8c6186c956f058e6dde164d4a973d802d27e01925a2ce7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.56.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3686a14b3b4eba96f35320d7f015ea89aa55f27bec45fb141a6c793467880ac6
MD5 1798f5a1e96ae6ab141cabdbad7b3343
BLAKE2b-256 70d8715b3bd4c5fd400eeb8b223d47742a09ca42d6dfd48ecf9be4bb928a9bbd

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