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.46.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.46.0-cp310-abi3-win_arm64.whl (629.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.46.0-cp310-abi3-win_amd64.whl (639.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.46.0-cp310-abi3-musllinux_1_2_x86_64.whl (713.2 kB view details)

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

tree_sitter_zsh-0.46.0-cp310-abi3-musllinux_1_2_aarch64.whl (708.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.46.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (719.1 kB view details)

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

tree_sitter_zsh-0.46.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (713.1 kB view details)

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

tree_sitter_zsh-0.46.0-cp310-abi3-macosx_11_0_arm64.whl (661.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.46.0-cp310-abi3-macosx_10_9_x86_64.whl (632.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.46.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.46.0.tar.gz
Algorithm Hash digest
SHA256 cf6cc7e86a7146c89d4020a5c7db7cafe75b19e6c6d133261e35219be790e0f4
MD5 f020de98157334ebb306a0baf9b203b8
BLAKE2b-256 6499ff00926492e8a2a4d162becfc4eb19ac48fd4cd5528827903c68ae1b1f6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.46.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 68de823b0af34870f32e5ec0f1712283dc9ebc6f802343a70d7e6d6e9875a653
MD5 d0c77b6b5369788956ea8fe893d4e049
BLAKE2b-256 a734596566b8543e337eb0a8ee925bc8c6c0dfe3e78572162fd7f28e68c889d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.46.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e47f773973743264b84c09c1652a096696b5df1adb18075b9189df27d64c7b54
MD5 ac39b2d9743847634a7474eb546bca13
BLAKE2b-256 3e548395907625f8f37d2469c46467d6b52356b546b5a090393a2ceee83ae2d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.46.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cfe7e7da5dc513841ac9290ba14076e0786f18e006c811079b397d4a635282f8
MD5 ae57a5475649f5665a23a59afe497442
BLAKE2b-256 e4ea37ec9a7260fd851dec92360fb9f61084bafa6aa3dc4df54fa33c798e9700

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.46.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2fecd057380406ac8aab2cf4845e654926cd241c2bdf2e0e2cb88f257c1bbee9
MD5 fde97cb5ee9e529f5d0fcbdbab793116
BLAKE2b-256 142d03d4e5a46ad186e18307e7c390c21528dc60b9f230f283ddd1619933bba0

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.46.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.46.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 63c4a9929838dbda6c2004ae3e879ad609972f77970a6e840d2c8f16bca8009b
MD5 047a6a3b6a06559408bfa06a4bca0d2f
BLAKE2b-256 f93b12b0317ab2dc91ea577d74d9509d47ac41bbb9c9a5dab836b42e3b7341a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.46.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8d3f2eede6941fc0498006aa6b649de2dfc0e52bfcf0bd7bd87a638186b815f3
MD5 9185d7ea51480e5125079388229081f9
BLAKE2b-256 2ca7e5fac08545500748cd83b1589ede596d0e48d7bb3ca1d1af1a5dc4a9f067

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.46.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6050538db516e9817560ffe943c04a8609c156383eddff1265257fca4ff7f98f
MD5 2e2954b320ee63cd27a4edc8141194f1
BLAKE2b-256 09172eb22a831f47fa3d261ef0cc13eaab7ee76c0994a275aafaf8bd89c8e6cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.46.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a8350244330ac7f848f595800e65d9fd3c5556d8a48d5b3b33e96438d2e50bbc
MD5 5234be0d370de06465eed7bd74c10074
BLAKE2b-256 948df675b9b7dcebe3465e2af694aca483618560ee7d30f3e1948646d5ff74ae

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