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

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.61.1-cp310-abi3-win_amd64.whl (618.9 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.61.1-cp310-abi3-musllinux_1_2_x86_64.whl (689.6 kB view details)

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

tree_sitter_zsh-0.61.1-cp310-abi3-musllinux_1_2_aarch64.whl (689.2 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.61.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (695.1 kB view details)

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

tree_sitter_zsh-0.61.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (692.9 kB view details)

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

tree_sitter_zsh-0.61.1-cp310-abi3-macosx_11_0_arm64.whl (653.9 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.61.1-cp310-abi3-macosx_10_9_x86_64.whl (618.1 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.61.1.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.61.1.tar.gz
Algorithm Hash digest
SHA256 1fd16aa573519542aee9c369d0f959d43be809e67aac7b184e58571d93ec15bd
MD5 f58c95fdfcc4a699649d597fbb8f381b
BLAKE2b-256 503b91b6539de0d92036fcfbe92cd41f3e88ce6808143a50e952eedc28f262de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.61.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 2458a05241dbec9a915e7923f0007d4d8643ff5c52b656a425801013a8c93297
MD5 e727f834d901a2d04e94d2fd5379a033
BLAKE2b-256 9dbfe403fd87d2cd689cc62025f38fb2b9d46063f535955c32ae41912d5248cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.61.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7fbc1f484204ba4de02da185eeb98f3baa42edac69f165ea7bcd6b251bc198c2
MD5 1a7d7761c4905a7c5b965a9089f187f8
BLAKE2b-256 85efddce7d7707571e3c2d61372fe89ff5eae7e25c727bb2ef27924c2bba7784

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.61.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b452cf704c19571265e5b2d37347251df4c4494f320b34f10ce3fbfef8ed09d4
MD5 80d79db92fb37a85be25ccf70d0d489d
BLAKE2b-256 2e83d017bfaf0f83ff2e9eb568256d90185967c7a7eee83256c814ba620446bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.61.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 5365d8b6c77f149361806792a1fc58613069cf176778a9114850092feff54e3e
MD5 da5e7d5d62ec360de821e22d65b44f19
BLAKE2b-256 dc1afa9b82219e31c6036e72f3985d5a16766560137f8cf4ca427ca11f728520

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.61.1-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.61.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2a830578ee2e3bc16f790f6c3a59c38174cb5d64ebed0787753aa56767cf6f6e
MD5 9b79fb86c35ea4ccdf1f174b08f15561
BLAKE2b-256 a0f7f7916467f6433d4cb148d1f49798481c607ef440928378a835061be6f664

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.61.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3e1d82617834f0264507d6ee06b089cbde81d03974ecd4cf548f5b479737c2b3
MD5 eabab64b1dc154f9351e3bd4f7cb467b
BLAKE2b-256 acf993a6d12da0d16ed39e900a663cf716d76c599a5e8b92bb3ccf23c142b6f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.61.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95fe0fd4774ffaa99afa3dea7469a78d556e54c9e24e50d8419faafc00d9da51
MD5 94f6675293500ad1c9cc73bb818e5cb3
BLAKE2b-256 385763e7f45aba48ce641c23f01e2c1d7aae7a6ce25fb959d7dea6b8081a7a0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.61.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 197e411ad781ced96d605bb259c72e6617a97c54c331a603b05ccd1cdbc0489c
MD5 60cfd592923304360d82dcca4a451036
BLAKE2b-256 a39f5bf0ada8c8492201c32388dd846e4ce4579920fddd9069619260cc990992

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