rescript-lang / syntax

ReScript's syntax as a standalone repo.
MIT License
254 stars 38 forks source link

Formatter puts external bindings on the same line as their doc comments #639

Closed johnridesabike closed 2 years ago

johnridesabike commented 2 years ago

This code:

/**
  Does something.
 */
@val external foo: unit => unit = "foo"

/**
  Does something else
 */
let bar = () => ()

Formats to this:

/**
  Does something.
 */ @val external foo: unit => unit = "foo"

/**
  Does something else
 */
let bar = () => ()

This seems to be a regression in v10

cristianoc commented 2 years ago

Thanks for the report.

Seems to be about doc comments and attributes https://github.com/rescript-lang/syntax/pull/642