Skip to content
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

parser: fix formatting struct decl with comments (fix #20202) #20207

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

yuyi98
Copy link
Member

@yuyi98 yuyi98 commented Dec 18, 2023

This PR fix formatting struct decl with comments (fix #20202).

  • Fix formatting struct decl with comments.
  • Add test.
struct ABC  //size: 0x1=1 (source) (123 45 67) 20B
{
        ff[0x20]                u8
}

fmt to:

struct ABC { // size: 0x1=1 (source) (123 45 67) 20B
	ff [0x20]u8
}

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.

@spytheman spytheman merged commit a8e0ced into vlang:master Dec 18, 2023
54 checks passed
@yuyi98 yuyi98 deleted the fix_fmt_struct_decl branch December 19, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vfmt fail with comment
2 participants