v1.11.0
- Use tree-sitter v0.24.6.
- Added new
rbtsexecutable 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 --helpfor 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_stringwhich can always be reached viaNode#to_sorNode#to_string. For instance, for the expression1 + x * 3,ts_node_stringalways prints:(expression (sum left: (number) right: (product left: (variable) right: (number))))Node#sexpris still capable of doing the same, but if we donode.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