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
Yup agreed - unlikely to come up in normal use, but it's the only formatting anomaly I've found yet, so I thought I'd mention it. I certainly wouldn't be too upset if this didn't get fixed.
griesemer
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
labels
Oct 2, 2018
It shouldn't be too hard to break alignment before a label. Assigning to myself so it stays in my radar but unlikely to get addressed anytime soon. Not important.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.11
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?darwin/amd64
What did you do?
If a LabeledStmt has an inline comment before and after the
Colon
, then an inline comment on the previous line will be indented incorrectly:https://play.golang.org/p/mSDEYsc_34O
This code should not change with gofmt:
... however it changes to:
The text was updated successfully, but these errors were encountered: