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.49.0.tar.gz (1.3 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.49.0-cp310-abi3-win_arm64.whl (630.5 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.49.0-cp310-abi3-win_amd64.whl (640.7 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.49.0-cp310-abi3-musllinux_1_2_x86_64.whl (713.7 kB view details)

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

tree_sitter_zsh-0.49.0-cp310-abi3-musllinux_1_2_aarch64.whl (709.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.49.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (719.6 kB view details)

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

tree_sitter_zsh-0.49.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (713.7 kB view details)

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

tree_sitter_zsh-0.49.0-cp310-abi3-macosx_11_0_arm64.whl (662.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.49.0-cp310-abi3-macosx_10_9_x86_64.whl (632.5 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.49.0.tar.gz
  • Upload date:
  • Size: 1.3 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.49.0.tar.gz
Algorithm Hash digest
SHA256 578437a0127676ca0f5764ab8f0f65733b083b26728fba32385f86dc6b140a5e
MD5 c81a278a4b70aaf23ed500b6d1321041
BLAKE2b-256 72aa30bbded2da1a72de2fbeb222433bc8c865f09086ba807bb886be4cb8a8a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.49.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 b1ed93c943cc82e9fa1c4f1cb54506efa28d82df0ecfb8f8bb66d97896d12649
MD5 504226da732dd61f82ba51f146ef204a
BLAKE2b-256 44ad8bf33076463b092b8c33cb0c658e21981707377acf1186fbb2d5ada126c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.49.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c2832cb61b056b38785f3ee5e51eaaa3cb3eccd906b23c3452c9d391dc5872cb
MD5 194bfec392668ab2ffc19f45d8d44b9f
BLAKE2b-256 125d94b5dca5034e3b648e689a59fb122a990d89eb8ed6ee96ac3205a4ce3eb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.49.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 203b1665f23091ae198301ff032754dbc36d9ea6d1275da2658adb6c968997e2
MD5 7dfa79c3a11aff6037f5bdf3b4ffac43
BLAKE2b-256 52c1f65af9c582af0165349f62c7e16124350ec91ebffe8403d8ac4d630aab19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.49.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b16efa6018183676e180e99e3161d441216bf364341d07ca20880385c5202658
MD5 2259bfb02fc92f821c92f22c783da1d0
BLAKE2b-256 fae7cc010d970e9d1c1d4ffd07e8287608af96551161ddfbf81e8a7a8a2e903c

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.49.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.49.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 de451af1bd50df8914deb9ef62a7113804dcec6636840b9ae8f149a0322debc4
MD5 e1a8bef638bc2cd04fe6096d41bf2291
BLAKE2b-256 938bea2e14825ab6988fa9cf6f30ac5aca5d63534560dacfb00d24faddc0b042

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.49.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3f049b50abd6cdad2651a6262ee3b4f832237a6ea680594b9f24549be8022537
MD5 c66cc873374d3b87bceac85a133cc37e
BLAKE2b-256 76401cb5f125467d0862584b7fab9c94e7b446e8bc5a8044c2f213eda0f55b98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.49.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e5f8a2958fa5834d681a086f849a88f866a8084622daf8721c04259ee2b6d4b
MD5 ba2a0409c7657ae2426b107c68b8a728
BLAKE2b-256 12978d22195096edc13e6f7870640f12f22fca72f374f7a735628aff6d3c3afd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.49.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7acbfa34d1a7993345b6ee4a11b7014da9bfa334cf2919e56a3e847942aedfbc
MD5 4795f839dad112dd75b87518ec5a161e
BLAKE2b-256 17d4ef85e3a4f3104fd1da5696e6a0c302b9cde1fc1ca6c428024fadae6a1a33

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