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.42.0.tar.gz (1.7 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.42.0-cp310-abi3-win_arm64.whl (673.2 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.42.0-cp310-abi3-win_amd64.whl (680.5 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.42.0-cp310-abi3-musllinux_1_2_x86_64.whl (736.6 kB view details)

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

tree_sitter_zsh-0.42.0-cp310-abi3-musllinux_1_2_aarch64.whl (735.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.42.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (740.2 kB view details)

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

tree_sitter_zsh-0.42.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (738.0 kB view details)

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

tree_sitter_zsh-0.42.0-cp310-abi3-macosx_11_0_arm64.whl (718.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.42.0-cp310-abi3-macosx_10_9_x86_64.whl (678.6 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.42.0.tar.gz
  • Upload date:
  • Size: 1.7 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.42.0.tar.gz
Algorithm Hash digest
SHA256 abfd68bd7d7945ede15495fcb81258d51878a13a1b08dfd079adcb7a68486969
MD5 570582ed29b0dd4c3efd90f1d340880a
BLAKE2b-256 cdf320ae5d5ccc256d338aa356a1f354a44fcde89447f41a09a2df9c1fbf23a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.42.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 12e0f43a3d81674e89b875654e1d8759e586734687e2157497b7c75476fa14ec
MD5 7b264aadb022f9ca31e7e5c3b4f6b137
BLAKE2b-256 583f3dc410e2c7f19611ae6a4c7ad49f03fd53569c44da4ec34d4778c4bc36a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.42.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 23b26ed2cafb176d95de0215058939874b0f8ef8509fcd17a636863cf92eba84
MD5 341b8b01f3676ee48fc7eed9b69d641b
BLAKE2b-256 2474f400126ed20058e51ae226862269d5284409e6c89aadae6a711590a05cf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.42.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6118305996af67a1ec532920628ca6d52ea7faa70fcb64e2c8667587f1bf7b45
MD5 2aba421573c05e622d11e390c72a10b3
BLAKE2b-256 d4c05d230b8ea31c4050ecbb6accad7b539470606214891cd64ff616966ecf74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.42.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0b386e5681bb9a98a5d33352d33ac7b7a0e2fb0e1e57f013b71bcdf7102665c2
MD5 9b3593deecd3e9cf7e2e6ebcedff9295
BLAKE2b-256 05c071743e82c1ec30871c3c7cd04b3dfc3bc6ed454551df59a85658df1190f1

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.42.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.42.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4cd15ad82a83e708cd4658c04798e8c03d9a9c8c2a963f46685dcc00a638d430
MD5 0506f65e15cb31c5ad50de4ed763e061
BLAKE2b-256 c821736f642649f13300a5c21e5d4ec515ec0a05d4a47cbdb9ed9094c8aeb291

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.42.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 efdbc4e41ae6373a45c53a17bba1e5324dcb0c161dd9dfe9c6fc29fb95e0fd3f
MD5 984f54834ad759009666f7b224dae72a
BLAKE2b-256 a8989ff1eeffeb63fbfbfdf49564fa6b2ac21e82f277e05ae62e8a277fe73b87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.42.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c246535f382e95980c83238e4b58fab186f987059089401c88be370f4571532
MD5 9755f1af59684be20d896bffb3ad54fe
BLAKE2b-256 603b2be5131dd0652adfc99a7525223881d69aed01713615c58831ec10956913

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.42.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 781bf5efb42ceb0d69828a914416aa36fe8f472a9eea5419e8b346c8c24efc6a
MD5 47b5a285f99470de6984d7fc58e46085
BLAKE2b-256 86d4d986abf15c130fb95bc44d09fbe2197f912703cb1b5fc5a16c89c3b23e88

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