-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
v fmt wrongly remove "//" on comment. #23607
Copy link
Copy link
Closed
Labels
BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Status: ConfirmedThis bug has been confirmed to be valid by a contributor.This bug has been confirmed to be valid by a contributor.Unit: ParserBugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).Unit: vfmtBugs/feature requests, that are related to the `vfmt`, the formatter for V.Bugs/feature requests, that are related to the `vfmt`, the formatter for V.
Metadata
Metadata
Assignees
Labels
BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Status: ConfirmedThis bug has been confirmed to be valid by a contributor.This bug has been confirmed to be valid by a contributor.Unit: ParserBugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).Unit: vfmtBugs/feature requests, that are related to the `vfmt`, the formatter for V.Bugs/feature requests, that are related to the `vfmt`, the formatter for V.
V version: V 0.4.9 1197615, press to see full `v doctor` output
What did you do?
v fmt -w main.vWhat did you see?
When running v fmt -w on this file, the "//" in front of 'Command callback' comment are removed, breaking the next compilation.
What did you expect to see?
No change when running v fmt -w on this file.
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.