We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
here is the example code :
module main fn main() { } pub struct OperateInfo { // implements IperateInfo pub mut: title string msg string id string }
format the code and the result is the same
module main fn main() { } pub struct OperateInfo { pub mut: // implements IperateInfo <--be moved here title string msg string id string }
v fmt ./main.v -w
No response
V 0.4.0 b35ad8a
V full version: V 0.4.0 b06811c.b35ad8a OS: macos, macOS, 13.4.1, 22F770820d Processor: 8 cpus, 64bit, little endian, Apple M2
getwd: /Users/tony/v/vtest vexe: /Users/tony/v/v/v vexe mtime: 2023-07-26 09:12:23
vroot: OK, value: /Users/tony/v/v VMODULES: OK, value: /Users/tony/.vmodules VTMP: OK, value: /tmp/v_501
Git version: git version 2.39.1 Git vroot status: weekly.2023.30-6-gb35ad8a6 (6 commit(s) behind V master) .git/config present: true
CC version: Apple clang version 14.0.3 (clang-1403.0.22.14.1) thirdparty/tcc status: thirdparty-macos-arm64 a668e5a0
The text was updated successfully, but these errors were encountered:
ast, parser, fmt: fix formatting struct declaration with comments (fix …
2f2dde8
…#18982) (#18992)
Successfully merging a pull request may close this issue.
Describe the bug
here is the example code :
Expected Behavior
format the code and the result is the same
Current Behavior
Reproduction Steps
v fmt ./main.v -w
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.0 b35ad8a
Environment details (OS name and version, etc.)
V full version: V 0.4.0 b06811c.b35ad8a
OS: macos, macOS, 13.4.1, 22F770820d
Processor: 8 cpus, 64bit, little endian, Apple M2
getwd: /Users/tony/v/vtest
vexe: /Users/tony/v/v/v
vexe mtime: 2023-07-26 09:12:23
vroot: OK, value: /Users/tony/v/v
VMODULES: OK, value: /Users/tony/.vmodules
VTMP: OK, value: /tmp/v_501
Git version: git version 2.39.1
Git vroot status: weekly.2023.30-6-gb35ad8a6 (6 commit(s) behind V master)
.git/config present: true
CC version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
thirdparty/tcc status: thirdparty-macos-arm64 a668e5a0
The text was updated successfully, but these errors were encountered: