reasonml / reason-cli

Globally installable Reason toolchain.
MIT License
291 stars 23 forks source link

Refmt 3.3.9 removes semi-colon in JSX #95

Open maarekj opened 5 years ago

maarekj commented 5 years ago

With refmt (Reason 3.3.9 @ 9914cc69) The code:

let a =
  <div>
    {
      let name = "joseph";
      <span> {ReasonReact.string(name)} </span>;
    }
  </div>;

is transformed to

let a = <div> {let name = "joseph"
               <span> {ReasonReact.string(name)} </span>} </div>;

The semicolon after "joseph" is remove by refmt, and the code no longer compiles. It's a regression bug.