-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
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
[odinfmt] weird return {...}
struct formatting
#346
Comments
The format style was thought for:
Instead it would have to be
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 |
Looks to be a duplicate of #271. |
Fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...
The text was updated successfully, but these errors were encountered: