Open avh4 opened 2 years ago
Input:
x f b = f {-A-} ({-B-} 1 + 2) b
Actual output (version 0.8.5):
x f b = f {- A -} {- B -} (1 + 2) b
Expected output:
x f b = f {- A -} ({- B -} 1 + 2) b
This happens because the merging of the comments is not aware of the syntax context and removes the parens and merges the comments, but luckily the formatter is smart enough to know that the parens need to be added back.
Input:
Actual output (version 0.8.5):
Expected output:
This happens because the merging of the comments is not aware of the syntax context and removes the parens and merges the comments, but luckily the formatter is smart enough to know that the parens need to be added back.