Releases: Faveod/ruby-tree-sitter
Releases · Faveod/ruby-tree-sitter
v2.0.0
v1.12.0
- Use tree-sitter v0.24.7.
- Fix Oppen version requirement in gemspec.
v1.11.1
Disregard v1.11.0. It had 2 major issues:
- It doesn't provide a precompiled version for ruby 3.3
- It claims it works with tree-sitter 0.24.6 but it was running on 0.24.5
v1.11.0
- Use tree-sitter v0.24.6.
- Added new
rbts
executable to aide with writing tree-sitter query's. It will watch a source & query file then print the match & capture nodes to the screen. Seerbts --help
for more details. - TreeSitter: better erorr message in
Node#[]
. - Cross-Compile:
- build native ruby 3.4 gems.
- restore cross-compilation tests.
- TreeSitter|TreeStand: add
Node#sexpr
. It's a better alternative to
tree-sitter's nativets_node_string
which can always be reached via
Node#to_s
orNode#to_string
. For instance, for the expression1 + x * 3
,
ts_node_string
always prints:(expression (sum left: (number) right: (product left: (variable) right: (number))))
Node#sexpr
is still capable of doing the same, but if we do
node.sexpr(width: 40)
we get:We can even print the named leaf nodes:(expression (sum left: (number) (+) right: (product left: (variable) (*) right: (number))))"
(expression | (sum | left: | (number) | 1 (+) | + right: | (product | left: | (variable) | x (*) | * right: | (number)))) | 3
v1.10.0
- Make
TreeSitter::TreeSitterError < Exception
instead ofStandardErorr
;
we don't want them to be handled by defaultrescue
.
v1.9.1
- Add custom errors for language loading:
- LanguageLoadError - ParserNotFoundError - ParserVersionError - SymbolNotFoundError
- Add custom
QueryCreationError
for query creation.
v1.9.0
What's Changed
- Bump tree-sitter to 0.24.4
v1.8.0
What's Changed
- Bump tree-sitter to 0.24.3
v1.7.0
Use tree-sitter v0.23.0.
v1.6.0
Cross compilation is now online again.
Full Changelog: v1.5.1...v1.6.0