tree-sitter-ruby
Ruby grammar for tree-sitter, a maintained fork of tree-sitter/tree-sitter-ruby. Try it in the playground.
Install
The import names are the upstream ones (tree_sitter_ruby), so only the dependency changes:
cargo add tree-sitter-ruby-magikdidi24 --git https://github.com/Magikdidi24/tree-sitter-ruby --tag v0.25.0
npm install github:Magikdidi24/tree-sitter-ruby#v0.25.0
pip install git+https://github.com/Magikdidi24/tree-sitter-ruby@v0.25.0
go get github.com/Magikdidi24/tree-sitter-ruby@v0.25.0
Development
The parser is generated for ABI 15, which tree-sitter 0.25 and newer runtimes read (Neovim 0.11, py-tree-sitter 0.25, node-tree-sitter 0.25, the Rust crate 0.25):
npm ci
node_modules/.bin/tree-sitter generate
node_modules/.bin/tree-sitter test
Older runtimes (Neovim 0.10, tree-sitter 0.22 to 0.24) need a parser for ABI 14: node_modules/.bin/tree-sitter generate --abi 14.
Deno can load grammar.js instead of Node, and lints it:
TREE_SITTER_JS_RUNTIME=deno node_modules/.bin/tree-sitter generate
deno lint
bundle exec ruby script/prism_diff.rb DIR compares the trees with Prism on the Ruby files in DIR.
Local variables
Like Ruby, the parser reads x +1 as x + 1 when x is a local variable, and as the call x(+1) otherwise. The external
scanner tracks assignments, parameters, for and rescue => variables, numbered parameters, and the scopes of blocks,
methods, classes and modules. Variables bound by pattern matching (in [x], => x) are not tracked, so there x +1
stays a call.
References
Metadata
Release files for tree-sitter-ruby-magikdidi24 0.25.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tree_sitter_ruby_magikdidi24-0.25.0.tar.gz | 652.9 kB | Without provenance | Details for tree_sitter_ruby_magikdidi24-0.25.0.tar.gz |
Built distributions (wheels)
Total release size: 2.8 MB
Release files / tree_sitter_ruby_magikdidi24-0.25.0.tar.gz
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0.tar.gz |
|---|---|
| Size | 652.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5779df6c35cbe97d8bca509a50c941cbc742dbeabcb31338439a7cc673931a2c
|
|
BLAKE2b-256 checksum How to use checksums |
d98d645035a5a56433aa11915db0b7fc9544f16fac089267e32736bef4cf17ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-win_arm64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 232.0 kB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
8b16cf4f07ed0243ab6ef16188dafd7d0a704ab49f6099c2afdeacef03afd80c
|
|
BLAKE2b-256 checksum How to use checksums |
6756864a913943b9a0e34001465ec99bef1306600a6500c9d9fc9dd236268445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-win_amd64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 232.3 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4fb8f2d6f62a637162acc3ff40151a11b87f456c0771727ba81667c71e719b7f
|
|
BLAKE2b-256 checksum How to use checksums |
308acabd3936928d2a001d0a6fd718f7e5966711e867774c0f5a0714e6503732
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 294.9 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8e853b3793d432de3fde19aa709b7f487bb27dc14188c14be648c768f958f6e9
|
|
BLAKE2b-256 checksum How to use checksums |
f5f9440bf4d377c87a14164dad84eb176d64713612804d40a2e5216b37ff567f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 293.0 kB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4cbdcbd1bf97642c64d02b205da6047face4c3ce39e4209af8ba21a59e640825
|
|
BLAKE2b-256 checksum How to use checksums |
371784989d66f3e41c1bf36df5bb5052ccdcc390e0e66d8ad90c2479d1868f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 296.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0bbd6a6f236fb812fd873cafc3aeb8a04caa064dc7bdc4e62d3c31e42b86c7ba
|
|
BLAKE2b-256 checksum How to use checksums |
3b5089528bf0d72ed05aed7a41b8a58798fb6d4c65c865f81a8b32d07760ce26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 295.8 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ea0a7a25e5ed95c9aa8cf48a2f48cc02168f9bdd76acfbddcdbf2f53aac389c1
|
|
BLAKE2b-256 checksum How to use checksums |
7eb766530a5f2a993604cd5d8c48e7b88cd8391927668dc90338c286f14b278a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 253.0 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9a56387df56ea559761d3fc079f698c2a69108b7b8259aa5f86fb180715ba46b
|
|
BLAKE2b-256 checksum How to use checksums |
a1d75c56a44d40b3f489e3bfead8f0e3038a599cf720b789ab0e5188b14b07f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-macosx_10_9_x86_64.whl
| Download URL | tree_sitter_ruby_magikdidi24-0.25.0-cp310-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 231.6 kB |
| Tags | CPython 3.10 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
7ef3266f664cf4f424b3dc4e6152389874f003eb428faad116e4ddec8a469c9a
|
|
BLAKE2b-256 checksum How to use checksums |
8ab27148a0b0b9a68dc82d96490bab91959f702e6197ce2fe3b581d5fed938d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for tree-sitter-ruby-magikdidi24 0.25.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.