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 enum and interface decl with comments (related #20202) #20216

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

yuyi98
Copy link
Member

@yuyi98 yuyi98 commented Dec 19, 2023

This PR fix formatting enum and interface decl with comments (related #20202).

  • Fix formatting enum and interface decl with comments.
  • Add tests.
enum ABC  // enum ABC
{
	// aaa
	aaa
}

interface Abc   // interface Abc
{
	a int
	get_info() string
}

fmt to:

enum ABC { // enum ABC
	// aaa
	aaa
}

interface Abc { // interface Abc
	a int
	get_info() string
}

@spytheman spytheman merged commit d474f69 into vlang:master Dec 19, 2023
54 checks passed
@yuyi98 yuyi98 deleted the fix_fmt_enum_decl branch December 19, 2023 12:56
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.

2 participants