-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comment gets duplicated #1912
Comments
Hey, thanks for reporting this issue. fantomas/src/Fantomas/CodePrinter.fs Line 1445 in c97e732
It will find the token from the record and think it is a match. (fun ctx ->
let closingBraceRange =
ctx.MkRangeWith
(synExpr.Range.EndLine, synExpr.Range.EndColumn - 1)
(synExpr.Range.EndLine, synExpr.Range.EndColumn)
enterNodeTokenByName closingBraceRange RBRACE ctx) Because of SynExpr.CompExpr has a range from the opening |
Issue created from fantomas-online
Code
Result
Extra information
Options
Fantomas 4.6 branch at 10/08/2021 09:24:03 - c12fa2d
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: