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.53.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.53.0-cp310-abi3-win_arm64.whl (630.6 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.53.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.53.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.53.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.53.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.53.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.53.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.53.0.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.53.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.53.0.tar.gz
Algorithm Hash digest
SHA256 296f41b1df1d5446076355dd7ebdcff2a29ca89595fa87e853f12573b4eddb82
MD5 b127130030aab8a73b15d29b11e5aafd
BLAKE2b-256 b203a165500fe27d6485652cedf8cf654bb7b3e754c72453f309772138bc900f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.53.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 87b19d753332c8e0208b74dd1c8af105b44c65df3f4f42f99c2767ec47c63bf9
MD5 63c25f839b15cb594abe27ad40962123
BLAKE2b-256 71d9e7e6af60b64bcba352426daba25cd0a11441ecb4b7e8b143609d2eb4f4a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.53.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 57af363ec1b6a520e94166c19fbe9a346f718d76b3884c5eb2a12ebd14243790
MD5 9f618d653ba31d42bb4ac351cfc6e26b
BLAKE2b-256 11f9200ee7e00ac959aadd933e13ef379727c4e5b3d5f1a233789086b635d698

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.53.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fdf12802206a81701ca5397af20b9ec311e644654834f5970d50e652ced56568
MD5 ee5fe8d87b9adef730fa5f6a60e4e9b8
BLAKE2b-256 74eebeb1ed456012077bebe9617a2159f4a2d18a2a9016acd0dab841b129b412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.53.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 9140188063acfc6f313193fb39b6da66a68804213ae15a8c8d91f7700b8029f9
MD5 93aac486102aeeef0e65bae7cc55dde3
BLAKE2b-256 c7c6c2974bb4d779dd25d53f3e028d0a6b2ab8c61faff0aae1b1781de1c72081

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.53.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.53.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7d92270acf0cb1d2d9d577d7a1b5e4c51527c26ef34f83266ff72f853ac6857
MD5 2ea9da38358b9e01194f41906bb4bb9a
BLAKE2b-256 2cf3e5178d9bc72781c3ef54933ca86894a50e05c3c2b257fbe562389dbfe166

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.53.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e3f5c96147d6bda828cb097676977a112b7df7975c53d5951ed68185099b62d
MD5 f2bfc36fe59a4c9623e1ce758d062014
BLAKE2b-256 dd1e90cce4180b3115e7d5722e7ebb0ae7c23c33933413bb9a314d1d869ead9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.53.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af342b763e09a84df768cf23f83a2233631f4fb92e08dc9f1553b206403cb619
MD5 8822046e58539318cbb176cddefee17b
BLAKE2b-256 a8c880a0d6e8d54b795bf8451706fa531abe76810cba033692f160af606a0a88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.53.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8e6bcae7e3eae88484feb892db1c06fb4537c965310bbafabae270f04f14bfbc
MD5 333c0b86f21e98b36e8759df7b5ecec8
BLAKE2b-256 b7f50319feed0c33b533dbdf9f2d182526f35b005bce201f37dfec311abc0c41

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