Skip to content
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 in async block gets moved #573

Closed
theimowski opened this issue Nov 27, 2019 · 1 comment
Closed

Comment in async block gets moved #573

theimowski opened this issue Nov 27, 2019 · 1 comment

Comments

@theimowski
Copy link
Member

Issue created from fantomas-ui

Please describe here fantomas problem you encountered

Code

let f() =
    async {
        let x = 1
        // comment
        printfn "%d" x
        return x
    }

Error

let f() =
    async {
        let x = 1
                 // comment
                 printfn "%d" x
                 return x
    }

Options

Fantomas 3.0.0

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
StrictMode false
@theimowski
Copy link
Member Author

Looks like it's fixed in v3.1 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant