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.60.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.60.0-cp310-abi3-win_arm64.whl (611.0 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.60.0-cp310-abi3-win_amd64.whl (620.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.60.0-cp310-abi3-musllinux_1_2_x86_64.whl (690.0 kB view details)

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

tree_sitter_zsh-0.60.0-cp310-abi3-musllinux_1_2_aarch64.whl (689.8 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.60.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (695.5 kB view details)

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

tree_sitter_zsh-0.60.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (693.3 kB view details)

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

tree_sitter_zsh-0.60.0-cp310-abi3-macosx_11_0_arm64.whl (654.8 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.60.0-cp310-abi3-macosx_10_9_x86_64.whl (619.4 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.60.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.60.0.tar.gz
Algorithm Hash digest
SHA256 662c9815b9edb73fe802430b1629c34c09d30605feb76dbdfaef2fd94d5d712b
MD5 8783e434d93f67107e4d63154f6af26d
BLAKE2b-256 7bc30f711d52f79e73280d2db0bf471291f35c3a51a2af3a0c48aa14b4a3f9da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a85e95de306024f9e8c26513eb8a3d4efc82530ed0bbd5c607ef157197f92f28
MD5 00e62a41c8075ef1ddeaf959261baef5
BLAKE2b-256 91a3aa793d9c029836498fc31d2723b3651cf322184adce47aae45bd2ebdba2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 36def99334296f2fc64efbd77c4fc1258d7428532b7961321432cd3ccecb6b01
MD5 532d4a2a482316473f852dcd38a72192
BLAKE2b-256 0d9dc1ef9f8b72262cee723e0ed53550eb3f0cd94ef49a7e0676f6d7d43dcbbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1cabecdc4207f790549ff186ca65e5643141b65f964f9683584385612cb6f3bf
MD5 08bde30a125dcc99d0c9ae68f2777f99
BLAKE2b-256 4081df54b945f03e6484e59270b73806262fb0439f684122a29c88f737e55247

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 90f8d245d4e3dc6445f4acb0e1a3b8c7ee686b63b79c7b235914c93ae371a9b3
MD5 b9f53d44f3a484ab52ecdf9d97dd9ec9
BLAKE2b-256 e88fb26d98d231d79b0ace06cd03931c9ce0450215a04752391d1923f671e86b

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.60.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.60.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c39f4c0b8d5ba8f20a0dc75b80a5ba424ca36dadf4c1170e25377322001d9d0e
MD5 97e1e70dd2dc0897d8a4a62cfb1a7874
BLAKE2b-256 03bbdf0b63807d27754cf87d63b59d73c8c31bec0b5ed10b08d67cd97dad50d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 41eb2f313f9f23364d6087f07aa3248ad03219aeb25adf697773d0a535a1a7b4
MD5 5cc0cc0c925232d10d94c9f4647e3e0f
BLAKE2b-256 fcab76d322bfedb783e63c0a3f8449995324888b356cf2fb6ef0af4f0088edbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50cddbd223c3de7003fdeb423086969f67d4f9021cfdbcca8bc18138800715ea
MD5 6974d8f63c065fcc2ae7b48a66aac725
BLAKE2b-256 47ae186c0234f728c275f04b62fe0dc18c20989d324142fc1cba3adf4920b28d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.60.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2bab3ccd0a84d4771391e8c4b12e047a37267f9e3c19862e1c170e917d43f5a2
MD5 af851a8de52f42c4a50ed9a38753692f
BLAKE2b-256 6eba14d7d225fc19d665d9f730322b1664c8ccf2fe09d50bb5ffd4b6d8525ca6

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