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.47.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.47.0-cp310-abi3-win_arm64.whl (629.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.47.0-cp310-abi3-win_amd64.whl (639.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.47.0-cp310-abi3-musllinux_1_2_x86_64.whl (713.2 kB view details)

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

tree_sitter_zsh-0.47.0-cp310-abi3-musllinux_1_2_aarch64.whl (708.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.47.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (719.1 kB view details)

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

tree_sitter_zsh-0.47.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (713.1 kB view details)

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

tree_sitter_zsh-0.47.0-cp310-abi3-macosx_11_0_arm64.whl (661.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.47.0-cp310-abi3-macosx_10_9_x86_64.whl (632.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.47.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.47.0.tar.gz
Algorithm Hash digest
SHA256 f63a1bf66ceafac10dc5cec10945502c8d86714dc64e8e0361e17026186dd047
MD5 01a96e2daa54fa96aebee9836db62d89
BLAKE2b-256 bf0d058e927a4459f5c627ab686f5aa4de5ee76eff75d45bbe69d9d5fa37141d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.47.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 8981d7c7efa5e13ad5a4178073ba76c73564fffd6df9f4b983ece6e7c7562a28
MD5 e9342b135cc50daa492ec5d56ab518dc
BLAKE2b-256 f1ea828ab281befce450ed6e462c3e908c80bb3773cdf53c70738daf0011fe19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.47.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7984c20c0e2e7c9c9e700fb8af2529e373cfde73d21b85f82fa58b11f5c4254a
MD5 b8c8c9684d3df33eb617b2c1efe50068
BLAKE2b-256 b887e76b2cedb2c183e1e46b0e70304d3f3c3097947af9f9df2b5cd4bc94421a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.47.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dec59d61ca488e73982a59cee1404702cf981ef76484cca87db3ea3bf5b6fbca
MD5 7af571d8b327970b721290e2ef5bbd54
BLAKE2b-256 d0a9a25b8e40e9ef99b2c2e39068c31584106d0efb72a8a8fddc26116265edcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.47.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 dc523c7a0a36df18b790de4e1f313b7b055c6279b0ae9a66a65d03c5b44dc2e8
MD5 bb08269ac3e53ae9341fa149f35edd19
BLAKE2b-256 bc881bc56be4d162f320f3570c147189cd92f049c43b96816357345cef4c312b

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.47.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.47.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d88d8bfb8b3c8773b3d5cf1ced865f87d8e57ecae5ce7ad0e58de018a0851d64
MD5 6a4315aa6716a7e7a6670094f482d110
BLAKE2b-256 33e91e767bb945c80340a10ab5564c309b8613656f735aa81bb754b5ff29ef52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.47.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 102e7077cdd5870fedd03eda310e113cb2861c03bb7c5d1171d035212bb79018
MD5 995ae075db89ec844f553fbfed272779
BLAKE2b-256 508e0ecf0dbf569ea8e1364f43fff8d540db6b32d9929d71a5e31c9342679552

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.47.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6de627dae73494965833181951dcf6cb2b6ba822b838caca7ba73e5b98d9057
MD5 ce5d033c0c5b4ce82310474c458939ca
BLAKE2b-256 1de8fd318d9655c671a0b7ea5b2d7634bd5aded62ef33436f9d52756b30cfb43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.47.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d4c3e5aba2c71e37575c9bef4762a2e9322f80d67697596594e2bfb293c27af6
MD5 9c2e5f42dec5b01702761868726169db
BLAKE2b-256 974ff04a343ce69a5e18fbcfd8411d7dbf7a6b6b8ea0215323072ec6e462d4e9

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