syntax icon indicating copy to clipboard operation
syntax copied to clipboard

Preserve nested if branches

Open cknitt opened this issue 3 years ago • 0 comments

Can we / do we want to preserve nested if branches, e.g.:

if a {
  b
} else {
  // test
  if c {
    d
  }
}

which would currently be formatted to

if a {
  b
} // test
else if c {
  d
}

(see the discussion in #564).

cknitt avatar Jun 18 '22 06:06 cknitt