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.32.0.tar.gz (1.2 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.32.0-cp310-abi3-win_arm64.whl (483.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.32.0-cp310-abi3-win_amd64.whl (488.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.32.0-cp310-abi3-musllinux_1_2_x86_64.whl (540.1 kB view details)

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

tree_sitter_zsh-0.32.0-cp310-abi3-musllinux_1_2_aarch64.whl (538.9 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.32.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (544.1 kB view details)

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

tree_sitter_zsh-0.32.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (542.3 kB view details)

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

tree_sitter_zsh-0.32.0-cp310-abi3-macosx_11_0_arm64.whl (515.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.32.0-cp310-abi3-macosx_10_9_x86_64.whl (487.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.32.0.tar.gz
  • Upload date:
  • Size: 1.2 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.32.0.tar.gz
Algorithm Hash digest
SHA256 203f0296b36a3034a3ab635ec373a1ee64425826677bbc9461bf330d79a0a9a4
MD5 8942e6ca2bbb44ad5b1b15d751eacfac
BLAKE2b-256 d851e00c63f69475e3659588d7d7a0637b9d49d55602d576485011d7a166a4af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.32.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 beebdbf7d59d746f76e8680716669e8043a844f3cd419c5d48d7ad1554ad22a1
MD5 782053adbc51e9acdfa32b0e501911d4
BLAKE2b-256 a589c9a70c797129aea8ddd3e3395c7599b6a22e6d91afed1ad2b2e94b15fbdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.32.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bc77ea39d85f24150908fc2f22ad7728dc6d7329fc78f59e15cf43f489eb1bca
MD5 a6ce71f5b83d6fc3ae5b838934de037e
BLAKE2b-256 6b9823dedb513b82d59488a351e46efcc169ba1e96a62bd16b12761c0b490a8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.32.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 eca3172f3ca16f8c2c6b848b0f9bd2fd91226cd8450bb04cec50cbf077006e6b
MD5 53a6265c7912f893bd9ddd13cab5e620
BLAKE2b-256 9c402e15c620b43bd8d0ea2e96043b53ccf81fe3f0fcc74e584a89448eb4fec3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.32.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3be81ffc912bed5dae8be848a9964d1f5c4bf91c8feda63bc32f72f8a164b4ce
MD5 127685e917376d3f70fff7efbc72407a
BLAKE2b-256 55223499dab0b84235b3286a16a1403becdd040ad3b263b7b5a8999e5a0cdeee

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.32.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.32.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 14dbb1782ff4f67a0ba2f8147c3a3af255884c895e124e86c18dcfef053c08fe
MD5 82ad6a43f809dbbebcb71f4282efdadf
BLAKE2b-256 2cd6a1906e46ba5e67bf2be073e14e2b35fca79b47a54360cf237c0e8df402d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.32.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f202e57d0d7e94412cd82de3459a27308a51f94e737d89e910a5661c1fa29a6a
MD5 7b6430b3d2c4e0b9523e284a5a406ac5
BLAKE2b-256 391a23248fa4bc7ec3f0d2975a37e6a966175b5f8d87ef320e2f8390bd8d0c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.32.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9905156c0f86244914328aaee641fdc93fb5dd09d79b243d697c5475a689c4b7
MD5 46547b7ddade674662f877ad4309919a
BLAKE2b-256 e5d41fe0be8c70c06c71b2795751c941fcdc59814c9d2831495bb1c76f6565dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.32.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dc2559674b491ceb6cca65a8eb77f00532ee5b2bd637a81eae23796657921d20
MD5 09ead41ff9c267d85d429343d44b2d55
BLAKE2b-256 c3d19a62ed7316a3abdb2976cd2403f70c5d1180bcd49a5eae7b83591ae2de1c

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