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.48.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.48.0-cp310-abi3-win_arm64.whl (630.5 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.48.0-cp310-abi3-musllinux_1_2_x86_64.whl (714.1 kB view details)

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

tree_sitter_zsh-0.48.0-cp310-abi3-musllinux_1_2_aarch64.whl (709.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.48.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (720.0 kB view details)

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

tree_sitter_zsh-0.48.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (714.0 kB view details)

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

tree_sitter_zsh-0.48.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.48.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.48.0.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.48.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.48.0.tar.gz
Algorithm Hash digest
SHA256 3b3710cc2008b2e83914b5f7ba379c7ad3bb054345ce3aa901e364944e96a4b5
MD5 61a9d8d661ea1e7e9f82bc777edc5261
BLAKE2b-256 7bc23de2c82b94cc57324dbf0977529bf6c51c786104393d36e11c726f601d87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.48.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 2c82dfce6bee607ce02d2127ceb751245ccf8efad37463c520033fa3e9165ee7
MD5 d7a3edaa97ab494167baad8e9627fb70
BLAKE2b-256 6696a7157df394357bfaeea9fab4d22a36c20c80599b6ddfe4cda999beabbdd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.48.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bec4c8b99e5e101095f0626d08e14e75fdc9491b317bbb6c7681a7af9baaf1f2
MD5 5183a261ff5910eb85d00dfb62274ffe
BLAKE2b-256 47aa5d26e56e6a18382bf589743a28bc05e701a24f0aa83b6c108caa1d855a36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.48.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 45e62db76b2d8f2507a5ec8b77b11b6671b2cb7a8973c8ed86c4d745769c44c7
MD5 6c53eb3f4de69f0a74355f203b320fc5
BLAKE2b-256 6faf22904bd9a81918cf0f0ec64f11b6336f545eaf306c80ee75d4882acedba3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.48.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 12c3cd489f61e72cab502f75d9c006eca8a6d14f9a486e821c8e57d580f42dc1
MD5 de9f89f7f8750797b30ff064ae9b2d22
BLAKE2b-256 23a17c554b6dbd21eda487df2ec207820ad9693ca2d132746d3e58b01c60feef

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.48.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.48.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aaf2b8b7186ae0fb65c29056305b777a7d6ee87903534cd7529289641595e0a1
MD5 620a896291b42cc8d480132a1e5e3f90
BLAKE2b-256 7f6c06b8dd30bdd61248ba32382258eb147269e3a668af34b5939d51eb8951f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.48.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8dd6eb29373ddc9890580b189518227bf9a6eb23873a2e93f0847bb3c7889216
MD5 0afcdca6939d4ca3a381b320ae6ab0d4
BLAKE2b-256 fa210c396e0584d449acfb8816b9ef83fd66ae8d26e9e365d60f9463d036a0da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.48.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b7b1289042eff1a91225363c2c665dc5cb8d69b479c634114eb340a071e08c1
MD5 6016c694be5c64a066fd1038ca00fb22
BLAKE2b-256 53b5fc986f0e7a4a6f699a6e2908d1ef203c04e87c61bdbcdf0c09ccfe06b737

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.48.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4a2f66a18efeed17572396b3784c893b5cc4c1c247bf3ae7585e13c66193a4df
MD5 35491b6a0011048ffd910f1e22cfac63
BLAKE2b-256 6a7ced6ad7ee9cb3fbb52897037638d4ba8b8ee47370b146ab9a64124078dc53

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