haxe-formatter icon indicating copy to clipboard operation
haxe-formatter copied to clipboard

Successive parentheses on different lines

Open migmit opened this issue 3 years ago • 0 comments

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"}}}

migmit avatar Dec 15 '21 20:12 migmit