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.63.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.63.3-cp310-abi3-win_arm64.whl (608.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.63.3-cp310-abi3-win_amd64.whl (617.5 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.63.3-cp310-abi3-musllinux_1_2_x86_64.whl (688.2 kB view details)

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

tree_sitter_zsh-0.63.3-cp310-abi3-musllinux_1_2_aarch64.whl (687.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.63.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (693.6 kB view details)

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

tree_sitter_zsh-0.63.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (691.8 kB view details)

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

tree_sitter_zsh-0.63.3-cp310-abi3-macosx_11_0_arm64.whl (652.0 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.63.3-cp310-abi3-macosx_10_9_x86_64.whl (616.2 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.63.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.12

File hashes

Hashes for tree_sitter_zsh-0.63.3.tar.gz
Algorithm Hash digest
SHA256 b5194bdb699ebccfd41a6468ca174eaeff577f5a64e72127c2dbbc7f82b60e3c
MD5 9057103c3f2039e9c40809efaa276653
BLAKE2b-256 013bdb829bfac3086db6335c20283805a00eac69a43497670b32b72891436dee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.3-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 6858630952f2e6555336f1e88ae0cc1607bdd0ce80f79fc229f653035dac6d59
MD5 d3f7b5748ced6b08f13921bcf9aa6c36
BLAKE2b-256 2dcb9fd2fbec9a070513ff8668277f11293892199d19386a781139bd2bd93a30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 256e8923e7141bf0b4d07811d4ef06873b14b520ef58fbf9546798465d87cbaf
MD5 5895db742eb048664db1685a04432b21
BLAKE2b-256 247864d7ef56ff22e5a85de89b6af7cb325e000de1082642585151439276242f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.3-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ce2a27d68d3dc031f448782082fbd67d66b440f786df292d6cc59ec48c6cdeb4
MD5 65e94a462fcadeef24988d1c043425bf
BLAKE2b-256 28a0c7d1b47892ee92073879f3277e0a3840426545a483f3910323b9c2ad2d70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.3-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 46a614b36a7bb979d5ca85b0e94e2715cf75d8221e551d66c17d5f370cea268b
MD5 fe132dd8b4e0e444ec0c7bb355c47b21
BLAKE2b-256 4a813b547e2df295c8422a985de249e4a1b0195b587a6e6292297e67bcd4fe8c

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.63.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.63.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c00dfa5b090752f95246b7d8e34e89d938131c67ae842ba23ab0b50ef54df5f3
MD5 27597f26c0b9730936e14347fd19d8b1
BLAKE2b-256 622b2c9694246098eb4402a78bc6df5103d45d0de62bccb79a17fdc234bd4e6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 845cf354a0e5a481961feb14c7a737479d26aba841f12c24d77616f2d0c39736
MD5 3f5ae97e848de94f9a82ec0a27b9bea5
BLAKE2b-256 bdb27e6dd710ea82e64feee2a21eb3614f635a94502c34c256e6760e8016a5e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae075f2c99a46e5cdcb7685a4e424fd12c9b6280e48eee30e9bf39350ea7ebdf
MD5 215460aa57c805f42ac6540fdaafb282
BLAKE2b-256 73765a3204af17cb547f69f24ff97c5abcc2f6f647914cc1a573d17fb5f039eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.3-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 862fbfaa3a53a978f4350e69e44431ed0488721e2623cc386c855d832fb4a49d
MD5 0edcbc9e36b2cf3853f4335a63913aa1
BLAKE2b-256 1ae935972435363266aeff939e2810d145048da4b8c28888ac1397d0ed9d3b5e

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