Open bakhtiyarneyman opened 9 months ago
Besides the extra newlines, those lines are full of white spaces.
This happens with any trailing comment inside an expression:
{
a = assert true; #
__
1;
b =
foo #
____
bar;
}
(superfluous spaces replaced with underscores for clarification)
I just experienced this issue.
Perhaps this was fixed in 3.1.0?
Before:
{paths = builtins.attrValues {
inherit
(pkgs)
foo
# This comment was supposed to be attached to bar.
# But it gets split like this.
bar
baz;
};}
After
{
paths = builtins.attrValues {
inherit
(pkgs)
foo
# This comment was supposed to be attached to bar.
# But it gets split like this.
bar
baz
;
};
}