Skip to content

Block comment is not assigned to trivia node #2490

Closed
@nojaf

Description

Issue created from fantomas-online

Code

let (* this comment disappears after formatting *) a = []

Result

let a = []

Problem description

The trivia instruction is not created.
The assignment of the node did not work out in Trivia.fs.

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-09T07:46:11Z - c1a16e6

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

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions