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.55.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.55.0-cp310-abi3-win_arm64.whl (679.5 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.55.0-cp310-abi3-win_amd64.whl (691.3 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.55.0-cp310-abi3-musllinux_1_2_x86_64.whl (772.6 kB view details)

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

tree_sitter_zsh-0.55.0-cp310-abi3-musllinux_1_2_aarch64.whl (767.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.55.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (779.8 kB view details)

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

tree_sitter_zsh-0.55.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.55.0-cp310-abi3-macosx_11_0_arm64.whl (715.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.55.0-cp310-abi3-macosx_10_9_x86_64.whl (682.4 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.55.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.55.0.tar.gz
Algorithm Hash digest
SHA256 bc1f2b5df386b19d62391b8d0e9745179b051cfdefcc7a5725d5d19537adb6e0
MD5 000db5c78701b83539ce6737b4969137
BLAKE2b-256 ac4010d108093afc6539060fb98ea906cf65038c29471157a0801ecb640059ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.55.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 8277d95b4d07e0e58ff6e540c09d96142fc8dba6e6a4957e93b154e9aeb7b76d
MD5 9eb890785dbb76b9da54e3ba36efc307
BLAKE2b-256 346ada7c26dcc8bec8b1bf050c54b44f95c80b1f3896f47a998d4709c8321b40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.55.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 93bc9684372c94ee15fc6c0a5ce2e337f0f942a80e5425350e9b258592053879
MD5 122754c9f2faef9987583a3bf97a6ffa
BLAKE2b-256 f8cd411eddebb48114573b15dbdb9fd4fd8a8ef2b75b343bcec9d91613777556

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.55.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2331ee1fd1dcd433aad5359400ef1d7b079ee4b6e4c1baf4d5dfca8a4df8fcd2
MD5 587450af66afb3b2af328ca5dade9449
BLAKE2b-256 9de4cb8fca4cec112932491972432e95449cf7eb43a797c23372ddc868f590c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.55.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 db9246b166aa028b0826244ef42d6e688b6dc5000bf89bf3072dfae99be9f3de
MD5 f2bc20afbb486bc01d80dca6c2076276
BLAKE2b-256 196529e62122a2ed3a93fb99979678a6d9d59445da11d44346c3f6f1b99ae0d7

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.55.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.55.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7dfb8611bbf0abfa0e12e5e61d64c9ca1538b560fb11bb6c1d793744694852d0
MD5 e6b1db9c7e84326a059380cf7fcf52f9
BLAKE2b-256 6ddee441770e83a58cefa8867c42627e9967ba18227ecbbfd47e270227f6cdc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.55.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 db1c558f4941a7088bfdbc2619d1bee202e39d4fbc52d1b5a7b98d54a8b6a272
MD5 541c7877bdf07c04ad2a4a1095143ec8
BLAKE2b-256 c56606e6423b32b6477dc315449a579bc94f4e97903c758797834273d4da7810

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.55.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9315020016275a7c4ebf2ed44d438bff202bc7c7e871f5be15fc7e1f1e8ddb1
MD5 b7fe228ee6d8c10f2ffb88e354a9d1e1
BLAKE2b-256 7e0c0fc9df084e31601e031c3b7b4615ca6f22cbe67a61fb88b8767440214b5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.55.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d54abef81c0801615a670f8a04f9421c8d8cab95d249c31714d798d2b65d9667
MD5 f468cdfcae2dc78a50e36df8a1295066
BLAKE2b-256 c368777f9898b2bb48777a49e4105c3dcb0a7e3d8270da101e1b15e64088f844

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