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.39.0.tar.gz (1.7 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.39.0-cp310-abi3-win_arm64.whl (673.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.39.0-cp310-abi3-win_amd64.whl (680.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.39.0-cp310-abi3-musllinux_1_2_x86_64.whl (736.5 kB view details)

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

tree_sitter_zsh-0.39.0-cp310-abi3-musllinux_1_2_aarch64.whl (735.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.39.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (740.2 kB view details)

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

tree_sitter_zsh-0.39.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (738.1 kB view details)

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

tree_sitter_zsh-0.39.0-cp310-abi3-macosx_11_0_arm64.whl (718.0 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.39.0-cp310-abi3-macosx_10_9_x86_64.whl (678.4 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.39.0.tar.gz
  • Upload date:
  • Size: 1.7 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.39.0.tar.gz
Algorithm Hash digest
SHA256 58083ac5d5492cace3616c30608920fcaf240d2119ae9a3a3400380b9bc330f7
MD5 c7e698a87298deee47f99bb742823788
BLAKE2b-256 80b0f130151dc8062f30a59eb59a32c709d0d85a033bb980311f251a6c06dd73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.39.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 d83667d0c291f51b9534b5c09a1799d49e9c85166f204270de2645d79ba65077
MD5 a08079f4f2280971037cbf9e288c2981
BLAKE2b-256 3cffd123623977c83ed9bc222a0f92d8623b671f2727ea1f02525a6d2adfcd49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.39.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 538e7d5eaed7854f8b0e1c764230e48c611ba969e07fa6e824a5dcd1b5760fc9
MD5 82b766be1f26e7761cc6aa93aca1baf8
BLAKE2b-256 5e35b8baec1c8282f6c1fd2c8ea74977e0c324e885cf159451673843ddec59c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.39.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 71fc8f9f3fedef79a41cbfece39675f80cbee8b551f0e1c5ef33c1fe5b571dfb
MD5 0702d5ae68ec442a3e83715e6854841d
BLAKE2b-256 71abf2234a75df6971978f49df647b87f3ca535332fc63d92b87287f9930f7bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.39.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7357e7908681112cf52acfe22fe7c8894a726940a73092f82e1b57c9fb59caff
MD5 76b05c44c2c897bdee7e23bab9019806
BLAKE2b-256 4ea26570502a0e4d88e0d56993832d263b90a2bd98351d75fe27a8c16437fd3c

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.39.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.39.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 33d2de1894b4933a5a89ca24522b773c790e1176207815145f204fc32c8191fb
MD5 4f6e1af103902d6f7ad5eb2b33c01f60
BLAKE2b-256 8706b4810b78ffb305907e9426d17d560ac041a5fa3062baf13b965ed7453b99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.39.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2cece164742b381628f300557025a1e2642ad90d9b80a693cea08a0362fbf4ab
MD5 883957b61333158bee92ea3a2e642458
BLAKE2b-256 0229f42b56a18608ca78f76a208901e0102b80ded633a0068ecbcae06dff3d7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.39.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a852b23bb16565543fcecefa4b52732d94d8cc24260d302707a0474f1cad95eb
MD5 f3cf3bfd33fb02261d6bab515b7d5366
BLAKE2b-256 6ebc002078621a8a6a10d011098fca10f3ab2e2cca758332cc70526baaffe516

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.39.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4fc258e7f8601676f273bed45fc8d63d411bc873173fce5bbe18c08cc99fd174
MD5 b720fdf4f4baa66d8459bafb9089f63b
BLAKE2b-256 a9483017182661a9cd413189deb76ccb93963cf76c41e9f2c770eb7bd26da779

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