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

Fix extensions printing #2674

Closed davesnx closed 1 year ago

davesnx commented 1 year ago

When printing code with refmt: Extensions are printed with and without brackets [] in some cases, creating a few problems:

This PR tries to unify them to always add [] while respecting the inline let attributes added https://github.com/reasonml/reason/pull/1703.