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.62.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.62.0-cp310-abi3-win_arm64.whl (608.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_zsh-0.62.0-cp310-abi3-win_amd64.whl (617.5 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_zsh-0.62.0-cp310-abi3-musllinux_1_2_x86_64.whl (688.2 kB view details)

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

tree_sitter_zsh-0.62.0-cp310-abi3-musllinux_1_2_aarch64.whl (687.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_zsh-0.62.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (693.6 kB view details)

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

tree_sitter_zsh-0.62.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (691.8 kB view details)

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

tree_sitter_zsh-0.62.0-cp310-abi3-macosx_11_0_arm64.whl (652.0 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_zsh-0.62.0-cp310-abi3-macosx_10_9_x86_64.whl (616.2 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_zsh-0.62.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.62.0.tar.gz
Algorithm Hash digest
SHA256 365f38d2459da43bcb414f45cab3de395cc88b3ce3556357329de081aa1db39e
MD5 38e57c7a822576aaf09ad0502c42a4bc
BLAKE2b-256 512bf90b8bb128d50a6893b7727afa709291bc00a0e82fba5b5dfe16b05d7ad2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.62.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 54e5f275f4be1354888c8538a77b02dfe523a23029f476ac5faef0077e2f56c1
MD5 979097dd2a90f30b4318c3714207b91f
BLAKE2b-256 393b598c7bcf700ce76a8d1a9e7c0258cdda821d0818d988d847ed6acde3d1e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.62.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e7935625a3783d778185d3a8044a016203af225c04049275b0e3403ce9570874
MD5 2080edb92088849df0815e50e8b7cb3d
BLAKE2b-256 21160fe717de094fee9284c8bc4fbc81870e91785841dab55a6562079b7d3d74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.62.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 334aff1f8a184504e7c1812218de2758257dc877778251876db46512c7c65207
MD5 f9d47f2744d9702b9edf861290291b80
BLAKE2b-256 77f3ce31f61c2c9e3ae7edb3cb205600060f734ca4f439e23e171bd7bfb966f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.62.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b4d16a525a43a7f6994639d27c96109a40cc4e240f6ef83dd34ebc20c4a0fa13
MD5 a6d5f6ee597dc67739ac449f3dd21015
BLAKE2b-256 55baa9c098de5ece46b22284ec9be72a70f8218b98519e8ea4ea79c7851d5b77

See more details on using hashes here.

File details

Details for the file tree_sitter_zsh-0.62.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.62.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 52d3fc6ff016f59f6d1b12b1c9ef2c4380307158cd05499fa0fa8522b3f26169
MD5 6ce46e5321ff17b71feacd4882afad7e
BLAKE2b-256 b33e68ad5bdde0fa7e5ae907233775aa18357f775b9cca8efdc5d9f6bda50f8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.62.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a7718535b17a92fc62ed7f69f5b80612fa124c1a81934234bf6d5014bbfc695e
MD5 6c22b63ce84a56da5c29678bfa8782bf
BLAKE2b-256 ccc4ea74a52e0136d3c3295ae05b235be7f147783e976a2d9fca7e438653b023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.62.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76759ff4387d388c663ec320904e8e35f8afe043d65e689d75cc3a3d00709ffd
MD5 fe9efe7030d6b615a5d92cbe9dee4bf9
BLAKE2b-256 e7868be48441a72c5642d0bba8822c7dfcbadc1b3911bf7bfc386c6b112c8de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_zsh-0.62.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9d5455ea6b16d32f97f57c2bcff672dbc1d980a7865dd72342efa492f6bf1f57
MD5 92dee8433ba95b82ee4b4e9b44d3e60f
BLAKE2b-256 54d003e8d0eeb7ce7194dd7d4916db5664cbcad858fa67cee130126411e16c8e

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