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

Formatter deleting parts of the code when having a superfluous } #120

Closed
jsiebern opened this issue Aug 27, 2020 · 1 comment
Closed

Formatter deleting parts of the code when having a superfluous } #120

jsiebern opened this issue Aug 27, 2020 · 1 comment

Comments

@jsiebern
Copy link

module InstallerDownload = {
  @react.component
  let make = () => {
    <div />
  }
}
}
module LicenseList = {

}

gets reformatted to:

module InstallerDownload = {
  @react.component
  let make = () => {
    <div />
  }
}

So it basically eats everything below the superfluous }. I reported a similar thing with parens here: #16, maybe it's related.

@IwanKaramazow
Copy link
Contributor

@jsiebern Thanks for the report! Submitted a patch.

kevinbarabash pushed a commit to kevinbarabash/rescript-compiler that referenced this issue Dec 24, 2021
Results in the correct errors being reported after the jsx.

Fixes rescript-lang/syntax#120
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants