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` breaks with multiline comment and OCaml 4.08 Binding operators #2649

Open rohitkg98 opened 3 years ago

rohitkg98 commented 3 years ago

When let* is used after a multiline comment, refmt signals an Unclosed "{" ... error.

Check an example of such code here: https://github.com/esy/esy/blob/master/test-e2e-re/lib/Helpers.re#L57

I rectified the current issue by using Single Line comments instead: https://github.com/esy/esy/pull/1278/commits/0271ffa59e26f559ed14a89afbae62f86a47d43e#diff-d48981202dea0e43079feef93f441a8dc5b5a093b53d08c29adc7f5875bd0645L56