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
I don't believe the exact formatting of code with pipe operator is specified in RFC 0148 or RFC 0166; this issue is about nixfmt not throwing an error when it encounters the pipe operator syntax.
Small example input
1 |> builtins.add 2
Expected output
1 |> builtins.add 2
Actual output
|
1 | 1 |> builtins.add 2
| ^
unexpected '|'
expecting "or", '.', end of input, operator, or term
Description
Nix 2.24 (release announcement post on discourse) added support for experimental pipes (RFC 0148).
I don't believe the exact formatting of code with pipe operator is specified in RFC 0148 or RFC 0166; this issue is about
nixfmt
not throwing an error when it encounters the pipe operator syntax.Small example input
Expected output
Actual output
Steps to reproduce
The text was updated successfully, but these errors were encountered: