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.33.0.tar.gz (1.2 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.33.0-cp310-abi3-win_arm64.whl (483.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.33.0-cp310-abi3-win_amd64.whl (488.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.33.0-cp310-abi3-musllinux_1_2_x86_64.whl (540.1 kB view details)

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

tree_sitter_zsh-0.33.0-cp310-abi3-musllinux_1_2_aarch64.whl (538.9 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.33.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (544.1 kB view details)

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

tree_sitter_zsh-0.33.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (542.3 kB view details)

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

tree_sitter_zsh-0.33.0-cp310-abi3-macosx_11_0_arm64.whl (515.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.33.0-cp310-abi3-macosx_10_9_x86_64.whl (487.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.33.0.tar.gz
  • Upload date:
  • Size: 1.2 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.33.0.tar.gz
Algorithm Hash digest
SHA256 d7a83aa331d5ed3dc376644ebd8c809178b6e02740995032e827ee11fd48816d
MD5 a076d1c326d0c690f1b6a1754afa2bea
BLAKE2b-256 fb11739f383c78476bc2b95c6b3677e69d959027c932faad6cf0b8a4e783c91e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.33.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 2b306da77cbf2efcde53ecb97b6ee00be364f5e5b200e9b027d03d6fdcb54fea
MD5 63094a1c6e4c007567a8e2336d22e8b3
BLAKE2b-256 fe0685642e6e9a22bab66e8260510c6baec08c4deafd6ec07966ac0ec192428f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.33.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0782bc7a12f8d9d6257d46eddb3b6b8f02936588f0bd2039c531e1e79e6ec6a7
MD5 5c0d64d6fb4e23f2a452d2bf09ee7658
BLAKE2b-256 4eb7cb5925fe483166a25877d909219433ffc8561a50ba29349e31212e95eddd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.33.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 12058c17f4cdf93f53b6cadc66d3e264e72afc0eeb0e9235f16e76a92848f0f1
MD5 eb753fdd9cb795e29c91d449bb0c6064
BLAKE2b-256 75da92b79515d67cb79e2ba926a72af4cb7b3728971cc4a7e75fde04ce87c6f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.33.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 efc67d9585e9bb69550c164b42dfd826fe1535a8a5a1cb4d60a9e57ad056aba9
MD5 b3e5f7c61d94b523908391e570b0f11b
BLAKE2b-256 676e43a590ec9c6ef5b63f22369c0cb32cdcd7b7b55920495739878c82084ecf

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.33.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.33.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3bda4ead05d7907dc2bfd9428063a8356a230032d785fec81b48798b4142b39d
MD5 dde940da022e6abec76f8214c588bca7
BLAKE2b-256 2039ac1b6ae082aed961e1e2d0f421fc72508c120630bb7d1a23c6341793959c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.33.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9d52973a24981c68f28725410bd087bba0c23f363d52518549d23062faa696b7
MD5 64e3b007d747bd986d4215087286d59d
BLAKE2b-256 2b839d9e930a039caa18bf6942e0b631b2d3b433650e974a3386ba45751eb761

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.33.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 079fac4f9ee6d1f3bda9767a25c726b02748b2ee14aee29d12b03286c6705a81
MD5 fd23333a235c414d1acff62209ac40a1
BLAKE2b-256 d919882380b1d8a18d6d8ddd2dca306798a7cca7652216f38c9a0a3b534c527b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.33.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d3f7d899f980650153e1965c4a3b4c22596e1f87f85f1f55a567744dad4375f5
MD5 a5af7d1a7a763aed4515b60f952f9e12
BLAKE2b-256 bd9e456d8f2d622603c9ed9aaf19d8962741899f87a9a6fd55255536d1bf389d

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