-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Preserve comments after record #516
Comments
[<Test>]
let ``meh`` () =
formatSourceString false """module TriviaModule =
let env = "DEBUG"
type Config = {
Name: string
Level: int
}
let meh = { // this comment right
Name = "FOO"; Level = 78 }
(* ending with block comment *)
""" config
|> prepend newline
|> should equal """
module TriviaModule =
let env = "DEBUG"
type Config =
{ Name: string
Level: int }
let meh =
{ // this comment right
Name = "FOO"
Level = 78 }
(* ending with block comment *)
""" |
nojaf
added a commit
to nojaf/fantomas
that referenced
this issue
May 15, 2020
nojaf
added a commit
that referenced
this issue
May 15, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue created from fantomas-ui
There should a newline before the block comment.
Code
Result
Options
Fantomas 3.0.0
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
false
PageWidth
120
ReorderOpenDeclaration
false
SemicolonAtEndOfLine
false
SpaceAfterComma
true
SpaceAfterSemicolon
true
SpaceAroundDelimiter
true
SpaceBeforeArgument
true
SpaceBeforeColon
false
StrictMode
false
The text was updated successfully, but these errors were encountered: