fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
773 stars 194 forks source link

Trivia after mutable keyword is missing #3005

Closed nojaf closed 10 months ago

nojaf commented 10 months ago

Issue created from fantomas-online

Code

type R =
    {
        F1: int
        mutable // voobar
            F2: int
        F3: int
    }

Result

type R = { F1: int; mutable F2: int; F3: int }

Problem description

It would be nice to have the mutable keyword range.

Extra information

Options

Fantomas main branch at 2023-11-30T08:28:20Z - cee9a9e9dcfe6d913460418b604b370982f08c75

Default Fantomas configuration

Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.

nojaf commented 10 months ago

Fixed in https://github.com/fsprojects/fantomas/pull/3006