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.63.4.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.63.4-cp310-abi3-win_arm64.whl (609.0 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.63.4-cp310-abi3-win_amd64.whl (618.2 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_x86_64.whl (687.9 kB view details)

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

tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_aarch64.whl (687.5 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (693.2 kB view details)

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

tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (691.1 kB view details)

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

tree_sitter_zsh-0.63.4-cp310-abi3-macosx_11_0_arm64.whl (652.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.63.4-cp310-abi3-macosx_10_9_x86_64.whl (616.8 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.63.4.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tree_sitter_zsh-0.63.4.tar.gz
Algorithm Hash digest
SHA256 08cd7872192396f67063fdee44566f38b91119c86fc1064e2b724862b229a37f
MD5 9fba3ced7ff3a6690619d504c727e446
BLAKE2b-256 87f45f8fe541b8a8b01b8d38d05d06013d9dc834f86eb1b1af3a4e18537a78e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.4-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a93dc48733f22662f062222ff08b093815ad7505d2bbf4dfca0de3fb2f83439e
MD5 794b9673e3a0eaf979d4305c0caca451
BLAKE2b-256 5f83bddf7eb52565b7e088953b97506ae8dc3b2f603ffa40b2bbb792a99c9c35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 98fb2c190ac2c4e1a11eb971d1ef819e42f90dd453cf362f2284664a8f5b6dc4
MD5 001b5a351a4076fb36fd0b6d25b97a83
BLAKE2b-256 db26af058249eb3d4f783a954e1b50acb1f5fb8e4ec76f8761f79c5b274ae80d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 81800956053959923277e8bdc4ef68915dfbf727599371844229e81c059c9cc0
MD5 d925411ee3b0dce4a3036049068cda7a
BLAKE2b-256 bdb7bbb707733f273a86304137ec022ea7e035d1ed4d98648120649bdb4625d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.4-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cc1066f8b573fe82f9c5f249dbc1a3f807be63e824c3fde61d805cd4cb1e7299
MD5 9197a6bb3ab6d470579de70b3cf94f32
BLAKE2b-256 bd8a2354eef5a033a27116486834c1c00db3f43ed908441f9f09ff3c7c394af7

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.63.4-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.63.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 97065a8e812501b9c9298c36fb2fa5d30fcb7902a9be4dd928b4a78267102019
MD5 9c086c83ad1949eeafdea9ee9e4bbd76
BLAKE2b-256 b85a6391d526de881301393071eb9bc7d5eec2e01dd946bc89f8bacc62aca483

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 631a7866ae2b57f20c81179560e47ab9ab0f0616eaf096e39baa39efef4ac193
MD5 c1ce99fdc4180e60086393f47000284c
BLAKE2b-256 e6d8da42fe8c9113aeb82072d52e8406f22985a5339f158af137439187303d84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 140c83f4e63496645036ac36b227e27f4abeb21b95587067cf3954579a0f7c33
MD5 042be7b1192d8b5e83ca74c3f3442215
BLAKE2b-256 a7d591aec2d5fba2398bc0d3e6cea71d4b84315715e6c6f70cd7127ec7adad23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.63.4-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8f798aebd52f7581f8816b066257315abed1c3d9843a4d4bf6c488e878a22b94
MD5 f0fde3a8f398d5479350fcf3865bb441
BLAKE2b-256 be840af3f41d583274bdbc34f7afbd1e5415ab31218b91d5848207b311bfb9b4

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