Closed jakubtomsu closed 5 months ago
The format style was thought for:
return(
imp1.derived.(^ast.Import_Decl).fullpath <
imp2.derived.(^ast.Import_Decl).fullpath \
)
Instead it would have to be
return imp1.derived.(^ast.Import_Decl).fullpath <
imp2.derived.(^ast.Import_Decl).fullpath \
OR
return
imp1.derived.(^ast.Import_Decl).fullpath <
imp2.derived.(^ast.Import_Decl).fullpath \
Maybe that should be changed aswell, but with braces I agree it makes no sense.
I think this looks the best:
return imp1.derived.(^ast.Import_Decl).fullpath <
imp2.derived.(^ast.Import_Decl).fullpath \
The braces do make things a bit clearer, but it's not something I would write without odinfmt. I'm not entirely sure but I think the core:
libs don't use them as well.
Looks to be a duplicate of #271.
Fixed.
A return statement with a multiline struct initializer gets formatted weirdly.
Here is an example. This is the what it should look like:
And here is what it gets formatted into:
The parentheses and backslash don't look very good...