Tree-sitter queries query #171
ranjithshegde
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just started looking into tree-sitter parser and upstreamed textobjects queries for supercollider.
But I wanted to start a discussion about certain
semantic
aspects of the parsing.For instance,
do
is recognized as a method_call and not a loop. I understand that it is becuasenumber.do
is a call. But would it be beneficial to treat do as a loop? text-objects can benefit from this by being able to select/swap etc as loop.There are some other nodes that I am finding to be not defined. Will add more to this discussion as I understand and find more. When I get more confident, I might take a crack at defining those nodes in a PR to tree-sitter-supercollider
Beta Was this translation helpful? Give feedback.
All reactions