reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.08k stars 425 forks source link

refmt removes unremovable parentheses #2653

Open smorimoto opened 3 years ago

smorimoto commented 3 years ago

We use these helpers in our tests, but refmt breaks them. https://github.com/ocsigen/tyxml/blob/8551b673857fdc1defebe7c502ffcb920f04009e/test/tyxml_test.ml#L81-L85

Actual behavior:

  1. !:(<p />)
  2. !:<p />

Expected behaviour:

  1. !:(<p />)
  2. !:(<p />)