The first line after // vfmt off
is replaced with // vfmt on
if the first line ends with a comment
#23629
Labels
Bug
This tag is applied to issues which reports bugs.
OS: Playground
Bugs/feature requests, that are specific to play.vlang.io.
Unit: vfmt
Bugs/feature requests, that are related to the `vfmt`, the formatter for V.
Describe the bug
The first line after
// vfmt off
is replaced with// vfmt on
if the first line ends with a comment.Reproduction Steps
Code: https://play.vlang.io/p/472fc92506
Format the code using the format button in the playground link, or run
v fmt -w
on the fileExpected Behavior
The code is left untouched:
Current Behavior
Output:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.9 b91bbad
Environment details (OS name and version, etc.)
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.
The text was updated successfully, but these errors were encountered: