reasonml / reason

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

Double slashed comments truncated #2632

Closed itsezc closed 1 year ago

itsezc commented 3 years ago

BUG

let something = 'foo';
// Something does this

This is formatted to:

let something = 'foo' /* Something does thi*/;

The comments are truncated with the last letter missing.

davesnx commented 1 year ago

This looks fixed with 3.8.1

echo 'let something = "foo";
// Something does this' | refmt

let something = "foo";
// Something does this