Skip to content

Unindentation of comment before end of computation expression #2476

Open
@Smaug123

Description

@Smaug123

Issue created from fantomas-online

Code

seq {
    yield! [1;2]
    // hi!
}

Result

seq {
    yield! [ 1; 2 ]
// hi!
}

Problem description

I think the comment looks much better indented as it initially was, though the code isn't broken.

Extra information

  • The formatted result breaks my code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas master branch at 2022-09-02T11:50:57Z - 164ca11

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions