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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.31.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.31.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.31.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (485.0 kB view details)

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

tree_sitter_zsh-0.31.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.31.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.31.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.31.0.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.31.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.31.0.tar.gz
Algorithm Hash digest
SHA256 6409d534ef8e3372ea7acea5dadce195363f7c12adf0a096da3511973311fad9
MD5 89e452d25650b04e42a65c848761e835
BLAKE2b-256 2db19777d14b8517eb3382d8887a325e78a1fa096423f55d9c0e44052125d43d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.31.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 650b8718ed4714c31e440d83b258b3fbdf9413cdc18592e1dcb64986899a7cc6
MD5 ea072c60128000cdaedcf37e348ec9fb
BLAKE2b-256 70a61fe42c94a902f3c918f61335eeaa48417d58473a75f0aa1774a4b7e6de9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.31.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 96d5ac203ec9d757f547f94cb07cce6bce2dcd0122d378d23fca3a3485ffbbaa
MD5 f7ad52fa9bdf18dc559868129f1db5a0
BLAKE2b-256 a8ef9dacdff08de272ccd3b72c7e789b7be74f8d6366e895754f9374a4da5e75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.31.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 634005cd084e076320fdc2200196a00db063b2cf6ff1dc43057c64504b2af2f3
MD5 9b050575ab91cf8137439c177ecf13c1
BLAKE2b-256 96e95804dee43e96a8b23016737a78e8d72cf9e121697ca2f07c3e72dec41d63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.31.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 20fc6b2757b3c860e484663aa192a90495578d602524736a89ecc3ce115fd978
MD5 aeb6ceaf5d40bf2263e66cb5a7ac31e4
BLAKE2b-256 3e5e9b1478103dad2de4ec6052daf144406eee5bda12eae351a1b291d1f16c9a

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.31.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.31.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd8ef79ae6edba9c7177b5fe0b92fd030833fd2ac10e66a95fa6710b7a01864d
MD5 9e8b45823b010272b56efd059a1634db
BLAKE2b-256 0c41a01dbf7476bb5e8ffd158a3c63bf1a6783ac6bb09856d9ee2ad06f5d3574

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.31.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 72e3f7a89b59f29971104b1f7e7d66dbcc6556e501af3e8b50062e9676b83d01
MD5 a39697ed13411b4e56481d4e02a3aae4
BLAKE2b-256 188944ed177b22ec18d9c727be533c8707130298441fdc236ee9eabc4203f0cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.31.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99fdac0ff7d5754f37f240d608369b0b1473c427de11dead9230d7bf8e12a7c0
MD5 31abbf136572d99bcee768d45307d08a
BLAKE2b-256 fec2c96387bca159ff51a98ab407df6e4cf4f1fd3b1a6d3d8218e75c8f3739bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.31.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ab208cccbcfd0fadc13b07e8cbcef5840e3f3b925612f0beb54f3a10363677c7
MD5 b18e529ed3878e04dd503e245a15d98d
BLAKE2b-256 449dadc5aa913f5e6b4322179afc47c12a44886821e80d234a21c840a5b937d4

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