Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

rescript format sometimes deletes comments #441

Closed
@Minnozz

Description

@Minnozz

I think this happens when the body of a match arm is a block:

switch true {
// This comment disappears when you format this file
| true => {
    let _ = 123
    Js.Console.log("Must be block")
  }
| _ => ()
}

Testcase on Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions