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.30.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.30.0-cp310-abi3-win_arm64.whl (427.0 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.30.0-cp310-abi3-win_amd64.whl (431.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.30.0-cp310-abi3-musllinux_1_2_x86_64.whl (481.6 kB view details)

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

tree_sitter_zsh-0.30.0-cp310-abi3-musllinux_1_2_aarch64.whl (482.4 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.30.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (485.1 kB view details)

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

tree_sitter_zsh-0.30.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (484.5 kB view details)

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

tree_sitter_zsh-0.30.0-cp310-abi3-macosx_11_0_arm64.whl (456.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.30.0-cp310-abi3-macosx_10_9_x86_64.whl (429.2 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.30.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.30.0.tar.gz
Algorithm Hash digest
SHA256 6ccf09c3543823c5e22b636d421dba9b02f21b2c24c41c5b64473d096eef0a2d
MD5 46a45f222f942b68d274c9d71a2d30ab
BLAKE2b-256 08bc5c221531dff94088a24d102f2ff139e3e6df113a2ed8e0d65994f97c74f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.30.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 74f9c90c21fa064796ed63b3715b093adc8c9c654b60334aca206a972a51ee1f
MD5 9e08937ee42e549cb673f242dfbaa9d5
BLAKE2b-256 4e6171136c4fa5cb60f567cf88d3e34d6423ac52017cd6249b3bb8d3b1c1c5d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.30.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ca76391c1c2ff602a76355a2646d9ba90f1199c6d23101979f88346422efe529
MD5 55dbd07df3698ca5fedde9b27cbff1fa
BLAKE2b-256 34f7407ce2a2d3b48091b6d6ac012a70d2ab45b35e4a7fc40623b06235453417

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.30.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1ee058489179208a708cd90295be9aa505edcec06f1474caf1c75d382c5d3af1
MD5 1a46c350ab6ac339513fad3e9e6040e8
BLAKE2b-256 6f5aa7edb23b7d89f9b24b78b35f518162f53a826fc14c44f7f0b4323b01c042

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.30.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b4029706ec9cc47a4b86df2033de47af8c621266d4598b67dd17fe1c15722ea7
MD5 fb4684bc2b1a53f9b9a70ef4bd5cbcaa
BLAKE2b-256 26b4d002537127fd41e70700db0d983f19b34099da2e518e497d6815bda245ca

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.30.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.30.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3fa9ed83c49e2a470d290dd97430b34177e3d5b71cdee0f5558470886c22058d
MD5 0444349504e4598479ede4821bcc1a7a
BLAKE2b-256 ef8f585668c396dc71f53fd93ca6b5cbea8d1b3b828bd20daede96a6a42a592c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.30.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8e40d99a5d9234718188b648f61a6106cf5a4943df1473ef8560c850301fe78a
MD5 aa78ca10bd56eea1dd357b494e12121b
BLAKE2b-256 d8736a1f6c3ced845fd631fbe7192e8b116d53ae7878ee17c89f9f021269ea2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.30.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b005fdba77b8592dee71b69bffc0379c8be23cac159f32b7b93ba63c52f180a2
MD5 554491c5edd50077a1547cf4cee23b7f
BLAKE2b-256 a100443706f28ed48b20e2f44586a835430da5954eaf1c4e6b33fa89222eb16f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.30.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 202825ca6b59240364fec59749abb0d25bfcb951d210d5679d05af754e53c730
MD5 ee07721b0945b9818d1bedeb794cac3d
BLAKE2b-256 e33d2a5af67c9eb1cd27b58167949e726e2179f7616c7933df5ba7cb8c9994fa

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