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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.60.3-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.3-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.3-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.3-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.3-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.3-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.3.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.60.3.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.3.tar.gz
Algorithm Hash digest
SHA256 46b5d8fc9375e06c1772a4752ed9d46f8cdb1ba4e073a4878676799eea91af8b
MD5 627e5577f90db561c50c66f98c52fb3f
BLAKE2b-256 3e2cb2df5bf9145650b91c89d609ac65388782a2b98cffc14f8246392adf9b49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.3-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 baa529b08866a3794c447e6666a7b5d8212ab529f429b04d5995fe951d2e58f1
MD5 3135de0fc0c6aa5bb269f982c593f4b5
BLAKE2b-256 45160d72e0d98b3bdce1570f9e317cbd4e8b862c07e7b380e022e5fa6201538a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ce80a2dac7f55e6e2731d3b75e54c688d9c9a7b96d0c5075cd8ef96ec4b47342
MD5 93796307d8f729294149894c55d49de4
BLAKE2b-256 d46326580b089324f69bf1ef71f1ffac885d54146416b6355b2652e7710ac185

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.3-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1ed5f70c06e064a2861bc1c36a3096da6edb909d120ca00c8954c08c6a783814
MD5 9bea59d50880ac3cc15493360007dd4b
BLAKE2b-256 5e10e2fb76c7cf784bbb35e52630bd0432e469f3ef9e16cff7d4411b1517bab8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.3-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d83b6e02e4ae352833b465243682ae9fabf31f507ccb13b5a70b03a5e1070af6
MD5 e292557bd135f4fc97d21fc9118f7aa2
BLAKE2b-256 cd9cf5467301ba1ee4638b988754592e8e0c497d60b0f82bd0d6aa03ccc6c18b

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.60.3-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.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3f1a80f81da37539f91b6d4725de7e14f6cb541a9b252fef7e5dbe87532916a
MD5 5b2a26a251a520ae24a7c18941b7b14c
BLAKE2b-256 8cc1727cafb64982c2dd1f454632479bb126cccb3bb76313f167c4e0a7ce544f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5be1753d61f47cf57d2fbadcb18ce79140461273f9d10caac8f3f8b91bf5a8e2
MD5 5f422e94b0c12c7c6d8955520b6c20c2
BLAKE2b-256 07b90110c13730e979f5a43d2f6772972f0bb9138d0f44bd0cfd2faa0874e640

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4e7e98a59ceef6bc448c6b8c9342b35b614273c83c8ac1239d9526004d1eaf4
MD5 d90d98637dbeb7ee1951c4911bc03f0c
BLAKE2b-256 f7b515ead122ab78ed5c4ebde8fec2574c38c9ec6bc1cd00b3abda82547e26c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.3-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c105ddb4f8e711ac1a590d1e28617bdd6a25d30bc2e0312e06accc367d0fc08e
MD5 4b4391d975c8717e8d477887e48c451e
BLAKE2b-256 f71bc0671b12c6eda9aa3120a10f80ad5ed46491dcc9d8e5022c189fb0493cd7

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