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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.63.2-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.2-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.2-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.2-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.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.63.2.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.2.tar.gz
Algorithm Hash digest
SHA256 46ad7c0b5cc4faab178b50215be6345fb0e8ae5fa1b01056c78c3dd4076a631b
MD5 cd2d07d667d8bb26cc67c1806cf56069
BLAKE2b-256 7b918c2dfd7150d33b7429b4c0d033ad7d6ec151359a2dc3b3e8fa4c42019e21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.2-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 758bd9101ae7a9a248c80d5ea1a44a25e4055e2e345900a4cb88048fec542178
MD5 67e3e6f1fa63630b4fad736d65b2935e
BLAKE2b-256 a9dc9253d941ff9d96f071305d14a16e2bc423dd7fb350eee6425b95361992e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b02d2bab1cc3fa26d1829761ef0ee56258fd72b90ba6182063d1e5675dc870d4
MD5 2cf4dcc8397fa24487326c4182380626
BLAKE2b-256 e7f492bf84b0accd2d4345495c9ab20c9ad8a35eb6f882bf189b90978b543a4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c8e4bb239e0f9881c7b8a43cad91414d323ea0e887f4131d867774b6437add11
MD5 ea8a34b43f3e54d5efe0fb35b72eb6ee
BLAKE2b-256 9082ab3fbd4a4014f9b90a2560ce07c81d909a8f7db113e0fe18c1045188b16a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.2-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ad62842bbeb53126e7255c032e0906fee89183f9c8008604314cae95fe8b992c
MD5 4ad6351d9cdf6729d5831ffc72a93232
BLAKE2b-256 fcdd6b67887d2ae72c575574b7ae72830d332f613bcb8b3df58e2ca8666fcfac

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.63.2-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.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 794ccde5843dd98434498660acf8a86fa316d7e56898a41967c1d0a94d9c475a
MD5 becd05ad46d3d4799eaddeba39f4f8a2
BLAKE2b-256 42d714e0137b852e45b435d09fb7b99a050d3efe8e4e3dc3022f00a21449e1f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4098775455d586286901ef180ff55c235bc7a22df75621dce421f8cd87d249a3
MD5 b5c7dffa544a0164aa2022393c2d7381
BLAKE2b-256 e405f080c31de9e02cce6df458162bb09418c8cf5c35e028b4a804833f9fe3ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0e981305b807149b2c0d957da9b7a466b2b4d8731c0b340e0e1759822f12685
MD5 134af0341570017a0aea79b0c4984b4c
BLAKE2b-256 c4645622751a1341012952eecf31be41aefd69369a32838069afdfa1babe3d60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.2-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1dfb193d311637cc6025f000f100e08be7586b1536d71dd6be8e664e8e6a84f8
MD5 250831bff17e04a96c7518d84cbebb03
BLAKE2b-256 e23748e9803ef35b6dff986dda063720df35ac0d0bb32d2a08c16c2e6c4d1623

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