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.36.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.36.0-cp310-abi3-win_arm64.whl (547.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.36.0-cp310-abi3-win_amd64.whl (552.6 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.36.0-cp310-abi3-musllinux_1_2_x86_64.whl (607.0 kB view details)

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

tree_sitter_zsh-0.36.0-cp310-abi3-musllinux_1_2_aarch64.whl (607.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.36.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (610.7 kB view details)

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

tree_sitter_zsh-0.36.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (610.1 kB view details)

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

tree_sitter_zsh-0.36.0-cp310-abi3-macosx_11_0_arm64.whl (584.0 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.36.0-cp310-abi3-macosx_10_9_x86_64.whl (552.2 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.36.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.36.0.tar.gz
Algorithm Hash digest
SHA256 d5c1c980ea2ae40eff9f54075eff6f019e4ff0e81b3f364ead95cc1cd49e55a3
MD5 e6cb1407996fd6ea9351e0ccb345093a
BLAKE2b-256 d931b01a244b3307ba78f3464ee9ba623126817d62020ee2852f3b257371a8c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.36.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 96d97f493f16b57fe001c78c181325beb9c344cd6841f12ac637cfa317d24cae
MD5 009809820a48f67835797c05ad714999
BLAKE2b-256 57bfaaf6dc3305fd1197e7f667bc75f351dd4792d5ef3e4a6a0c8b39c9a4f47f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.36.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7823b71bb0bfd93d9442039cbdd8b3bf85843af27338d59c7e1f5bb31d2a04bf
MD5 de6170bf0c4e3c1956a33a0d0ed93072
BLAKE2b-256 6632ec555fb92d7c5c78ccfaebcc1c81823dcdd57ab88cc88e881bf48839b072

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.36.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 49fd452bf3e6fc87fc183ac778550abbeb66017fd034d6c37f49d6bea455b860
MD5 7d7e9ae9c65fa950fad36a31d93147c7
BLAKE2b-256 e5010fcfd553a6eb06f9d98f7932d66022eba927af8ef0721fb08ce7d9266096

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.36.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 43d68e7b0100a7fc6c4b28cbfc201a2c9b4ddbac44487ee9dce1e53098c4df98
MD5 3f4dfbce4943945c00044507d8e1dbad
BLAKE2b-256 a7c7cfc46ec94eb260c6f79a4a40505205f269dfbd0a1a19dcafa388a832ad7f

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.36.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.36.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c49c2fb8e140ff0a4486b38a95761557b6952c1bbadf018e088ade6e6e6bbcda
MD5 b71e84c8f754389f7cd3cc434d489715
BLAKE2b-256 cb18a6a5700209276a5ac4eda5fac19a8382aa871aefa88d5c10fb6f629781c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.36.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 13498fb8e3a8b77f7ea38a12c8aab091a222a7f552f3ff5dd8b111209776c29a
MD5 25a8e8741f8802dcd0137ab47ee0b462
BLAKE2b-256 83093e505266477dd6a82d48c20147c5772eb1e300f5a6f55e67553add61cad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.36.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 693679183df0291a2bda6d296234c1b4424e4d0daa65a93b688d369bdfa851f2
MD5 90c8473d9fb818c8960047c529557586
BLAKE2b-256 dd99ee12361ac8aca633a50f58f1a4457a951005e94ab502091fea98bb506f5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.36.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7a648404e680c844bb70f4cd9bacdf246c0c75fa16e5cb48d94dbbaba4d33ec2
MD5 ca873e1ead762450d802c85c8efe6e44
BLAKE2b-256 8c18d1958ef14bd528eec0da1269851ba7c77bdd47f8d25fb8c525e566ba9d16

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