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.54.0.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.54.0-cp310-abi3-win_arm64.whl (679.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.54.0-cp310-abi3-win_amd64.whl (690.9 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.54.0-cp310-abi3-musllinux_1_2_x86_64.whl (772.6 kB view details)

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

tree_sitter_zsh-0.54.0-cp310-abi3-musllinux_1_2_aarch64.whl (767.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.54.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (779.4 kB view details)

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

tree_sitter_zsh-0.54.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (772.3 kB view details)

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

tree_sitter_zsh-0.54.0-cp310-abi3-macosx_11_0_arm64.whl (715.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.54.0-cp310-abi3-macosx_10_9_x86_64.whl (682.3 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.54.0.tar.gz
  • Upload date:
  • Size: 1.4 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.54.0.tar.gz
Algorithm Hash digest
SHA256 418c35bddb7d19c3ff9d70ed92a96859864771e31fad8fb9b773be16f4400bff
MD5 653a99f2d089fd60a7d18ee3d91030e4
BLAKE2b-256 3f0978bc579d8d9e2f7830d64a8ec8f23a2fa02a911c603325c5ff75bddaecb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.54.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 939226520c7ed413dc0c6a9f7f37c0ef3c47d6d827e625e5137d9196131d91a9
MD5 c913dcfc76e76577c5357a17d46c35f4
BLAKE2b-256 a62bbb9bd1df0cf84b32c147c254ce2eabf303277ea22edd657676e745128a7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.54.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9b58e8dbba91c614fc1f9f48a34e3e3ff2d80777fc9916c8536983645058db3b
MD5 e0bba512392a201de779f7a5b4468a66
BLAKE2b-256 455897fc5e67d4de56f137a7e35c3f7f1553a06a3ffbb5d7cc5a44e941114ed4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.54.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4893b5f4b9faac10f094d17b7bd4d3e6dbfe3c8f657f27171aa0ef9d19abc813
MD5 93cc3253040afcc68a8f5201c5313add
BLAKE2b-256 132053c60aad91188fcd188d47fcdc7aa038b7efc303cc9155a53d4f67a562d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.54.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 68e24b01e48f411aba2e0cbb5c9ec6e5f029d9667c742320978ff8d1a36f947f
MD5 4fc1316644081ff529bd1f804afce625
BLAKE2b-256 853cdbafe2203d330f9521590f277ef5c98c9b112d3ba6158ac57ecbe0dc8ac4

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.54.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.54.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ea98060e250d44cbdcbcc6416af6cdc92f653a36f6114082496b70a2b0de2b39
MD5 9865d94b58cf79a1b5154ff76b36b646
BLAKE2b-256 4ffd9c74de394d8c0b977667f3983a6aa984b1f87c44843b6a5a402d7452f1e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.54.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bcf6381d4777406cc139209d815f347d051cfe713734ed0651b77ded6462c1ba
MD5 fc9d34e969ac5e743947a4f090b0af54
BLAKE2b-256 1df5e3e8bf61fdae8db2e608855f361c72715ea87bedcbe968e81a4d2b5a84c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.54.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc3d0ed27cc18e03ae1b8b0c0a73f2859594439e9b7299d6b94350e7d26ea647
MD5 98f352bd4a921c45133692ecb72df8ce
BLAKE2b-256 f9362217f153ccbd118077602de6e9cd78c0ab512f61a3d884d6c457fc2a07b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.54.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0df79e8f0da2c99f0a9e8696e995bdb192eaee57008825614c1773f8fe701168
MD5 58baa95920097a2e593b7321a7a56e39
BLAKE2b-256 c92905d7e3a4d7eb511507fe67d9d9b29b1ac6f87b0048cdaa69779005980d74

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