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.43.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.43.0-cp310-abi3-win_arm64.whl (506.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.43.0-cp310-abi3-win_amd64.whl (509.2 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.43.0-cp310-abi3-musllinux_1_2_x86_64.whl (567.5 kB view details)

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

tree_sitter_zsh-0.43.0-cp310-abi3-musllinux_1_2_aarch64.whl (566.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.43.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (571.3 kB view details)

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

tree_sitter_zsh-0.43.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (568.7 kB view details)

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

tree_sitter_zsh-0.43.0-cp310-abi3-macosx_11_0_arm64.whl (541.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.43.0-cp310-abi3-macosx_10_9_x86_64.whl (508.6 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.43.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.43.0.tar.gz
Algorithm Hash digest
SHA256 3e7ff33def601e87a6481b1ced886b4967a006cb12b42fe334b4cf644679fb0d
MD5 6ce3b48307604f4a6833ad0edc818119
BLAKE2b-256 80c112c4d6356ef41c8582f4434e632dca6b2530e52518d9375973025f2e6c0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.43.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a86334ca8c23b586dc6183dce3a839a4d730ac350885ce0f1cdea164c58ec655
MD5 45e031f9fb45c297aa0fb4d255351347
BLAKE2b-256 e103bc725b64949d2f46473112cddb42f7d1008d68244023a2fd5a6da11272ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.43.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 03f3150ef392d861fc5257c51632868e4d7d21772106f1265911905d991893ff
MD5 03f8e6f9f2ece4f7a16b53c9f712b222
BLAKE2b-256 328890e92f20b5d0338fa4382e01c2de3d1284712de0abcc6d95dbe63c8fdaa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.43.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 eb7dc9383508a28e2bf9b91cd325f2301f2c83654d7734019e64608598ce495d
MD5 0712d486eb1c5e7140aff037a3c1d0de
BLAKE2b-256 6ae1f0fc56e896b607ac9b01f1f9274f5a0f6aaad60c98b825be817b819727bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.43.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 5afcdd7ef6a8c1d5b2d0d3909b8dfb683034b477cf775d323af9ecb495b618ad
MD5 501dd4f525ac25359d323abac3524c63
BLAKE2b-256 51823458a855593155118bb759541a14c835ace969a723353c7bc94422e5225f

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.43.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.43.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c0375065cffac22eb5bfaeefdd56c7becb8c6c4af53a0e6397cf275b83905016
MD5 b91a8f2d4acc0698054cf65f96b798e3
BLAKE2b-256 3cfe49e9301172dd27cb759eba09d917f3d965337f4768cd36fe59260a8c7ce5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.43.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7cb9be28797b97d7c4fa215a6ff89a856d260474b783f29865d0ea474a50c601
MD5 b79d6a859f85c97ca8db7260e9a8459d
BLAKE2b-256 0c04dc3c385ba824a66090cfddf02aa81c325916a37cfdffcb08b056a3d94838

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.43.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f681bc3aa194e57e170d16252512d18fa50fbcefd337d290281aef23a3b9d4c3
MD5 f540c18829a46e590e0245c4458ac879
BLAKE2b-256 4197b50361e20c123454b20a455ac35caf4028607294885790e66860a59722f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.43.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fec413e680ddcd75bcefca6add0f2323616f9e3f2d03a04f3bfe5c2b98b09da7
MD5 2da999cf0a8bcce101b9ed5e05401fb0
BLAKE2b-256 f9b2fca1731f0d16a169a8b2c4c81c3cb3c23429ad44663d29c56b3e1d8e660f

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