-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support fish shell #26
Conversation
Addresses crash when no name is given to a function, and the cursor position gets lost.
Add another function definition matching functions with options. This stops incorrect matching, causing errors when finding the cursor.
|
||
test "fish, global function with options", <<~END | ||
-function foo --on-signal WINCH █ | ||
+function foo --on-signal WINCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+function foo --on-signal WINCH | |
+function foo --on-signal WINCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooops I'll fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run the tests with ruby ./tests/runner.rb fish
, although I should create a Makefile lol. I marked the failing test when I ran it locally.
I think I tried that and had problems. Presumably my ruby is dodgy or neovim config is different or something. Would be awesome to set up CI with actions. |
Fix is in anyway :) Thanks for getting to it so fast! |
Hi - thanks for the great library, such a helpful example of the power of treesitter.
I've implemented endwise queries for the fish shell language.
I also added some test cases, but I haven't actually been able to configure my system correctly in order to run them. I think they each passed under manual testing...
Let me know if you need anything else from my end.