You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing with tree-sitter 0.22.5 shows no captures, matching the behavior of the playground. I did have to depend on a local clone of tree-sitter-ruby with its tree-sitter dependency bumped to get the program to compile, though.
Problem
I tried the following tree-sitter query in playground and it didn't show that the given code matched.
![image](https://private-user-images.githubusercontent.com/55491132/325845297-acfd2203-5c0f-41fc-a5d3-7730344d2891.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDQwMzAsIm5iZiI6MTcyMTM0MzczMCwicGF0aCI6Ii81NTQ5MTEzMi8zMjU4NDUyOTctYWNmZDIyMDMtNWMwZi00MWZjLWE1ZDMtNzczMDM0NGQyODkxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIzMDIxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2MjYzZjJiYWU2N2Q3YzcyZmJkZjRkNjM4M2ExYzY4YmYzNzMwNDFkMGM0MGU2NGI0ODgyNjQ1NmI3MzRjYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qZj8qXj1K9c9yEiSPM5Q1va8wXHjECosBJ7gizG5rXw)
So I put this in my library and it actually found a match surprisingly.
Steps to reproduce
[dependencies]
tree-sitter = "0.20.6"
tree-sitter-ruby = "0.20.1"
This code returns this.
Expected behavior
Can you help me understand why this shows a match while the playground doesn't.
Although when I updated the tree-sitter-query to this
This is working as expected that the method doesn't match as
return
isn't the sibling node.Tree-sitter version (tree-sitter --version)
tree-sitter = "0.20.6"
Operating system/version
macOS 14.3.1 (23D60)
The text was updated successfully, but these errors were encountered: