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.57.0.tar.gz (1.4 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.57.0-cp310-abi3-win_arm64.whl (679.6 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.57.0-cp310-abi3-win_amd64.whl (691.5 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.57.0-cp310-abi3-musllinux_1_2_x86_64.whl (772.7 kB view details)

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

tree_sitter_zsh-0.57.0-cp310-abi3-musllinux_1_2_aarch64.whl (768.0 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.57.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (779.7 kB view details)

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

tree_sitter_zsh-0.57.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (772.4 kB view details)

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

tree_sitter_zsh-0.57.0-cp310-abi3-macosx_11_0_arm64.whl (716.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.57.0-cp310-abi3-macosx_10_9_x86_64.whl (683.3 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.57.0.tar.gz
  • Upload date:
  • Size: 1.4 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.57.0.tar.gz
Algorithm Hash digest
SHA256 1c303e99814855e7e233b3b4deb49febd99695d88e4d4fa92eca6fd2fc9b5f2f
MD5 26b651b293bd12cae97bd36f1ed2e505
BLAKE2b-256 73fa4dc5c9239215fb34dee69a44d02f380b8fbc2c68ce47a88b533af09600c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.57.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 936f1c5682d890500d15ae86ac4dd7909ad8295cb44ea4c76a4c8deb88cf45c7
MD5 07bb000b8be91dbe4d35bd1a484fba8b
BLAKE2b-256 5e67bafe4ba7887802c2c7dfc1ebd756d5ccb3fa2b4844d16c09af01b5543569

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.57.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 df60f7797e2e4663af024d9cdf7c4753634f254ed1e87e7993093916961af6d5
MD5 982fe1c467ea0f2cd32929c0ce82e2d4
BLAKE2b-256 2837e32b7856c7f0985e09079851b5c58793d5c37dfd279b450721a966b0aec4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.57.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 50b97f1a7acf353c6eb46c894b914c0657a89b3ae6f6a514c319c7928d12308d
MD5 89823680923aa21f7928160bcd0423c8
BLAKE2b-256 ed156784f6181edfc1d17b4038ad077d72cd13d88ee1ce9d53156dc70d04be77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.57.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ea1187b28c554db2cbb8bb3a7290e0c435c0d33cdb56e7ff7d9286cb2c4b0221
MD5 aa273c3f1c2cceb5d860781579736a51
BLAKE2b-256 1da7ca8bc8f3598defd52f4f91413ecb29ebede56568fec7132d6d57ac868cc6

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.57.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.57.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ccd0ae0c219e75c7e3dc539352130a88414973bbb65c115a6c110eb81f72db9c
MD5 b55c024ec88fcdc9a0d849f18bb23e15
BLAKE2b-256 7a83c0c4b73b633009c990821eefb46078e9a7ebcfa1bb2759a519d7a542061a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.57.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 98e85591eeaa2a7c52d209a7ef54ebbd9fa4a58250d4d94ca9411373a4521776
MD5 1fa3a28c6ae52b745c7146233e21434f
BLAKE2b-256 f2276eb082bdce431db2f4cc6d05fb68104e2301092d97bb73328bdd1108a29b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.57.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3781d858cec962d3a5be5384b2c74ea6427145fb84bc3cafca3033b07b03e488
MD5 7a6e5fe3dd0e4452cbe00a1f7858f04d
BLAKE2b-256 17a88757ce4e82d870774ff2be12330ce54bdab3083222a6837da113f35867f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.57.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e7b5d62a836024b00f4aacae0d4b673169274c4b6e94147f849093ddf4c99555
MD5 76afe066e1a0c1114a9ad1a272af8ca9
BLAKE2b-256 ba017da2ad9e298a3cf3815dfe03f97a1d58da571a25d4abc582e8d7924a6d9a

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