Skip to main content

Bash 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 = '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.25.0.tar.gz (1.1 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.25.0-cp310-abi3-win_arm64.whl (435.4 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.25.0-cp310-abi3-win_amd64.whl (440.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.25.0-cp310-abi3-musllinux_1_2_x86_64.whl (494.4 kB view details)

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

tree_sitter_zsh-0.25.0-cp310-abi3-musllinux_1_2_aarch64.whl (491.5 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.25.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (497.4 kB view details)

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

tree_sitter_zsh-0.25.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (494.1 kB view details)

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

tree_sitter_zsh-0.25.0-cp310-abi3-macosx_11_0_arm64.whl (464.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.25.0-cp310-abi3-macosx_10_9_x86_64.whl (440.3 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.25.0.tar.gz
  • Upload date:
  • Size: 1.1 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.25.0.tar.gz
Algorithm Hash digest
SHA256 16d854191fc71f6a59de8744e2dc3bcb0f6b6d6fec866a9c0a5c74039314612a
MD5 1476719ad8113bbe1271d2680cd36a12
BLAKE2b-256 80706decc47a775ed90da78ec4e137fcf9639752583da22606a485aee6ec440b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.25.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 411582e8ce060c00fa9830626c3c170b9eab77dae127d42da11434d60b40decb
MD5 c1dd1567daae00ecc8d9fd2a88cbaf04
BLAKE2b-256 d60e5425c03371b8d86dcdbb4a79ede7824778bb579ec6fb1fe3efea0a5e0140

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.25.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 57fe414afa2426e4ae2067ad4df27f8025b5005c18b7aa10f5ee188fb9ac0aa7
MD5 6aeabd66cdc0baa05b1f0af010f7fe7b
BLAKE2b-256 683f3e1ebf43032ccc3076730354308e93aab62ee4328aa0d96d707a961b6c3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.25.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e83c4484f1784f3c1e17bc3424f282993619787b4ece71b522fdf50fe2bd270d
MD5 46e96b41ef223ba0756bdc4a0f8589ca
BLAKE2b-256 36ad1f59aba3433856e17b3100a2f89691f9c4b95ec4b09e83122c250a226b06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.25.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 439f5e2482a20348e25b0d2242f797612d2d2c86f87f5db004298f8450352270
MD5 5b78b3d8e6a906aa346ad635ea39bb80
BLAKE2b-256 b9a9167f4459ec6671162217dbeb8a0b63d03c9b49535aecaef25c70e65d9c3c

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.25.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.25.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 adbccfbbff85caef68a3225dbb4b3dced3eb7f4652c5454623585172c3121c05
MD5 7b3b2d88cea1a9622712064bad375cd4
BLAKE2b-256 4d0625b4c139f9c363ae7a8dc0b263dcdcceed877cc55bec6a6f28b6a8cdf012

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.25.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c59a3d3b7bd6abd21b2bfe0057521ec9614beb4944746577114bd129d0cf8f75
MD5 d6ae0b41236c1b47c1bb814422a29b9c
BLAKE2b-256 a77cc3746bb2a436f62f6a4fa6bd743b20e2834b39712ccdc99e260d4dd20018

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.25.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b650863b47559804613cce63eb98b531efdc72bf465da7b1655d0dc4dca27723
MD5 3d094a9b67df167a8fcdd699770589c9
BLAKE2b-256 8220c923c98cdee37b3a643cc9d614b9e5da87fa0f73bf66ce4316bcd97e2f40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.25.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6c361fd2e0f99a5842b65ca6188cc0ebd46ef2d4dad24a9c58ec64ffdce97aff
MD5 4c7ed2bff0c9050a7c4e5eac368f3ca2
BLAKE2b-256 901b7538c38b27bcdbcb05f1a7015e04c6149fb1b456e229d694aee651da1ab3

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