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
leta=0;in# checking if a == 0ifa==0then"a is zero"else"a is not zero"
nixfmt outputs:
leta=0;# checking if a == 0inifa==0then"a is zero"else"a is not zero"
nixfmt moves the comment before the in which sort of makes sense for smaller comments but big blocks of comments look weird.
Is this intended behavior?
The text was updated successfully, but these errors were encountered:
menixator
changed the title
Nixfmt keeps moving comments immediately after in
nixfmt keeps moving comments immediately after inAug 29, 2022
Moving the comment before the in is intentional and currently the only case where comments are moved. The fact that it gets indented is not intentional and is something that will eventually be fixed once I get around to #32.
Given the expression
nixfmt
outputs:nixfmt
moves the comment before thein
which sort of makes sense for smaller comments but big blocks of comments look weird.Is this intended behavior?
The text was updated successfully, but these errors were encountered: