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

sameLine.functionBody = next does not work when metadata is before the body #681

Open
NeeEoo opened this issue Jun 14, 2024 · 0 comments
Open
Labels
bug Something isn't working sameline broken same line formatting

Comments

@NeeEoo
Copy link

NeeEoo commented Jun 14, 2024

Describe the bug

A clear and concise description of what the bug is.

Input file

class Main {
	public inline function main():Bool
		@:privateAccess return true;
}

Broken output

class Main {
	public inline function main():Bool @:privateAccess return true;
}

Expected output

class Main {
	public inline function main():Bool
		@:privateAccess return true;
}

Optional: hxformat.json

{
  "sameLine": {
    "functionBody": "next"
  }
}
@AlexHaxe AlexHaxe added bug Something isn't working sameline broken same line formatting labels Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sameline broken same line formatting
Projects
None yet
Development

No branches or pull requests

2 participants