-
Notifications
You must be signed in to change notification settings - Fork 9
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
Read query from file #143
Comments
The most similar issues to this one are:
|
Hi @bheylin , thanks for your request. Apologies for @issuedigger , it's a tool I'm experimenting with and safe to ignore. Your proposal looks good, it's a useful feature. Your contribution would be very welcome! I was thinking, should Valid & existing file paths are nothing like tree-sitter queries, so I reckon multi-modal is safe and sane. |
Hi @alexpovel changing I'll get a PR together when I have a moment over the coming days. |
Great, thanks! I think CONTRIBUTING.md should contain everything you'll need to get started, but let me know. One thought: the docs of
which I tend to agree with. So perhaps just opening directly is a more suitable approach.
The main function of interest should be: Lines 800 to 843 in 4234925
which contains a really nasty macro, sorry... I'm open to any refactors there. |
Yea that's a fair point, I'll update the proof-of-concept code.
👍 |
I would like to be able to read a tree-sitter query from file so I can develop the query in a text editor and optionally save the for a longer time.
So given the query file
find_mods_nested_in_test_mods.scm
:I would like to be able to give that file to the
--rust-query
option:srgn --rust-query find_mods_nested_in_test_mods.scm
I`m open to implementing this feature myself, but want to discuss it first.
The text was updated successfully, but these errors were encountered: