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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.63.1-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.1-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.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.63.1.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.63.1.tar.gz
Algorithm Hash digest
SHA256 dc00a4bba0d038bc72de122ca38ca7330455fc2ebe05ec8bbb2b70dd3f36e095
MD5 c9909d866c697cf13db880e7c15159fb
BLAKE2b-256 622290d7cbe621b3cc7f6c63a36fd56d55f48a7321a4d155c026f10a071fac88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a15784080e4ee86a994200313a79140c0bb75b520c1dcc6741db8e090b6ccdd9
MD5 1e793c812259e52d06c631ad193f1745
BLAKE2b-256 d2f0b8996c303525e650e4defb7cd405e821bf394676198e492043620f1a85dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3acf6157437e7fe486824381b13df15954978a10bd6761a92132c813864978f0
MD5 d242eba6d90c42c069f298ac21229287
BLAKE2b-256 b21291c6d60ce5348fb0b00a478ca9b7e70c43d8d9a47a0c9d5df93e2ebaa660

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5e09964e83eac4fcdcd9fd03cb5569927ac4fd52b9c36188572f6de8b74177cd
MD5 7527f94b9ea2032c97a0d728325e4e6c
BLAKE2b-256 255f2ba5e8aefd1225eef97aa35f75567459f2a17b8fe45916bb473b3e318657

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 fd9bfce60c153f218dad61ada30798ca01a49a099d581ca6f9b9acb2e0eb2132
MD5 435eedaab8ee571e45bba8de607bb07c
BLAKE2b-256 d14e76a8fa0ca5de981cfee87ed6a3d1070308c6a2e61dea908dad2bf2542e7c

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.63.1-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.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 67c2fb1af404fef310d009d63ff8007ddaf6b8a525a068f2242fa185d2ae817f
MD5 39c2ce2bd542d62f161db3db2a7db503
BLAKE2b-256 694cb587161fcf9ccc7b8e24a12cae7efa859163ab9f1e40d5d2c7157895d0a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e2a061537b1c332022af3a27017fb49c84e2bcbefa6002b9ce603e462475107f
MD5 c7d51bbe4cdcce04172b76b3e96324d8
BLAKE2b-256 b15a367f3337496d079774d593c5c09d782d5b67e5a3caa648241edc6030b68d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7c9fcbaccefd1833231018fe8dd00d35fb870c57c6c95bb533d74194d5caed5
MD5 ae27e00685e9c950e4674ccde96cd5a9
BLAKE2b-256 ecb8816c4ab46b1c84334847ba203f164c4131b3bf2a6cb337dad2b1cb5669e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d4d559fbd136ce9946bb1710ee19141b1a78b4de3a2ce8f2773425a16d797200
MD5 7fa89dea136babf41d3bc8fb414583a3
BLAKE2b-256 382ce0488a72f0dd0a5df75589197b1c097f1d161943cfd0f8ca6569c915f70d

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