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

Successive parentheses on different lines #649

Open
migmit opened this issue Dec 15, 2021 · 0 comments
Open

Successive parentheses on different lines #649

migmit opened this issue Dec 15, 2021 · 0 comments
Labels
enhancement New feature or request lineends line end handling wrapping Incorrect or undesirable wrapping

Comments

@migmit
Copy link

migmit commented Dec 15, 2021

Describe the Feature
If I have a long expression, which spans several lines, I would like to keep a closing parenthesis on a separate line. It does work if the expression within the parentheses does not end with a close parenthesis itself, but if it does, it wipes out all whitespace between them.

Sample of desired output

if (
	abc() &&
	def() &&
	ghi()
) {}

hxformat.json:

{"wrapping": {"opBoolChain": {"defaultWrap": "keep"}}}
@AlexHaxe AlexHaxe added enhancement New feature or request lineends line end handling wrapping Incorrect or undesirable wrapping labels Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lineends line end handling wrapping Incorrect or undesirable wrapping
Projects
None yet
Development

No branches or pull requests

2 participants