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.40.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.40.0-cp310-abi3-win_arm64.whl (673.2 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.40.0-cp310-abi3-musllinux_1_2_x86_64.whl (736.4 kB view details)

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

tree_sitter_zsh-0.40.0-cp310-abi3-musllinux_1_2_aarch64.whl (735.2 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.40.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (740.0 kB view details)

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

tree_sitter_zsh-0.40.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (737.7 kB view details)

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

tree_sitter_zsh-0.40.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.40.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.40.0.tar.gz.

File metadata

  • Download URL: tree_sitter_zsh-0.40.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.40.0.tar.gz
Algorithm Hash digest
SHA256 710adec55bfce3a739627c574d1f5b387bd4ca91687d0738784e7f9e10c2fac9
MD5 940fd7ebaa53bd51843d58e85a8e3f23
BLAKE2b-256 f62157029638f3b4a74e3592f323b1512cc762fea756dd25b5eaf5d399b5844d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.40.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 b5b7605b00f6e9f5c6ebd2b93139aba5aa66eea93fe65bfa87d9d7d3647062a1
MD5 6c0f84b644c97099e166fffdd8145d5a
BLAKE2b-256 e90f9b163202863a37b0ffaf823b1eff4c95fb7f1b23976556e02797ef8b9a31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.40.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 90a52ca0f32601bde4ec3e10fdba487ce78f03231884ab00b016e77e009b656b
MD5 b8ee8f666990f3def8e9c7203d31e250
BLAKE2b-256 54a3e1475c10a6f477b8713444cb83a0ea650209081a9751216c0ab95bf86edf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.40.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bce02ef8bed3646d6aa6e81dafdf0c1869770caad9ba93d9b77a068056fcc5cb
MD5 e9c98e7fd21c12867390fb5151fb6329
BLAKE2b-256 e9457ae581623c3382b46baacc8dde618dd2280b4211ca72a752d631f18ab0b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.40.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3a124867b2818fe0ec33438c6b9e30574b6627252b46e22a8300d50451d769fe
MD5 1a272f10c66587083d166d5b2cfb9802
BLAKE2b-256 db166606781bd7fabd6b5f5bda4b10d3cff6276ca2eddcf4e92cef713aee5e14

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.40.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.40.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1f105ab631acfa14062d6d99fbb2bff1df99eb4152035f70803ab878b03ecae0
MD5 0a6173f597b97d1f2343ca4323970a9b
BLAKE2b-256 3260344a0da15dadc7c5788cb77379ddab43a210161750817ce1a3aebb34346c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.40.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4c032244541151045a21dc79ffc3c3d53b3c1701e7dea50a45f928246a570ea1
MD5 67c0634d691eec1170ae7787ada91c1a
BLAKE2b-256 b718c0338b7a39fd9a3eee2a5409f8b93a4b0c70cc21314d5ea6fcf4333bf927

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.40.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e13ae15daa28a792d2d470c28e433b23d88bb3bdb15a36fcf5a04f70b22028bc
MD5 c5789e09eb836cd44eb276e4eb897c9c
BLAKE2b-256 89793183f237e1f8b181bf5b6608f904bcaf4165462ddc55b44842f014c960fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.40.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 852e2fdd7d25607f8c9d707bff2c831823e335a4b86794188d8039b050447ae1
MD5 95375535ce88198d1f8ff01d39ba104b
BLAKE2b-256 03727e662590e635559db772e1a4cbaaa0dbc69d63adf9267204b2056625c162

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