We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&|
2>|
Is it possible to add &| and 2>| as pipe operators? I'm thinking of something like:
pipe: $ => prec.left(seq($._statement, choice('&|', '2>|', '|'), $._statement)),
I'm new to tree-sitter and I'm not sure if this may cause any side effects.
For reference: convenience operators in the fish docs
The text was updated successfully, but these errors were encountered:
Yeah, just add the other alternatives to | here: https://github.com/ram02z/tree-sitter-fish/blob/master/grammar.ts#L87 just like you wrote. And two more test cases here https://github.com/ram02z/tree-sitter-fish/blob/master/test/corpus/pipe.txt
|
Sorry, something went wrong.
Works like a charm locally in the Zed editor. See PR #21.
Let me know if I should make changes. Cheers!
Add &| and 2>| as pipe operators (#21)
a78aef9
Closes #20 Closes #22
Successfully merging a pull request may close this issue.
Is it possible to add
&|
and2>|
as pipe operators? I'm thinking of something like:I'm new to tree-sitter and I'm not sure if this may cause any side effects.
For reference: convenience operators in the fish docs
The text was updated successfully, but these errors were encountered: