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 stripped in a record with semi-colons #1643

Closed
pbiggar opened this issue Apr 14, 2021 · 2 comments · Fixed by #1653
Closed

Comment stripped in a record with semi-colons #1643

pbiggar opened this issue Apr 14, 2021 · 2 comments · Fixed by #1653

Comments

@pbiggar
Copy link
Contributor

pbiggar commented Apr 14, 2021

Issue created from fantomas-online

Code

type T =
  { id : int
  ; value : RT.Dval
  ; retries : int
  ; canvasID : CanvasID
  ; canvasName : string
  ; module_ : string
  ; name : string
  ; modifier : string
  ; // Delay in ms since it entered the queue
    delay : float }

Result

type T =
    { id: int
      value: RT.Dval
      retries: int
      canvasID: CanvasID
      canvasName: string
      module_: string
      name: string
      modifier: string
      delay: float }

Problem description

When I format this code, the comment is removed.

Extra information

Options

Fantomas Master at 04/14/2021 11:39:17 - e840e34

Default Fantomas configuration

@pbiggar
Copy link
Contributor Author

pbiggar commented Apr 14, 2021

Expected something like this:

type T =
  { id : int
    value : RT.Dval
    retries : int
    canvasID : CanvasID
    canvasName : string
    module_ : string
    name : string
    modifier : string
    // Delay in ms since it entered the queue
    delay : float }

or maybe this:

type T =
  { id : int
    value : RT.Dval
    retries : int
    canvasID : CanvasID
    canvasName : string
    module_ : string
    name : string
    modifier : string
    delay : float  // Delay in ms since it entered the queue
  }

@pbiggar
Copy link
Contributor Author

pbiggar commented Apr 15, 2021

Thanks @nojaf!

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

Successfully merging a pull request may close this issue.

2 participants