Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ruby blocks to lists of patterns #201

Closed

Conversation

technicalpickles
Copy link

Some Ruby frameworks make heavy use of blocks (Rails, RSpec). This makes treesitter-context a lot more helpful in those frameworks.

Some Ruby frameworks make heavy use of blocks (Rails, RSpec). This makes treesitter-context a lot more helpful in those frameworks.
@tradiff
Copy link

tradiff commented Mar 3, 2023

I've been using a much longer set for Ruby. I was going to add a PR for that, but I can confirm this one solves all of the cases I was using before. Good call just using block!

@lewis6991
Copy link
Member

We're no longer using patterns and will be switching to queries see #198 .

If you can provide a query, I'll be happy to include it in that PR.

@lewis6991 lewis6991 closed this Mar 8, 2023
@technicalpickles
Copy link
Author

Thanks for the update. I'll try to re-open with queries when I can, but it looks a bit more involved than this PR was 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants