-
-
Notifications
You must be signed in to change notification settings - Fork 200
Closed
Labels
good first issueLong hanging fruit: easy issue to get your feet wet!Long hanging fruit: easy issue to get your feet wet!
Description
I've been using FormatASTAsync
to format my code, but I found out that it is removed the single quotes from characters.
let code = "let x = 'A'"
let tree, _ = parseFile false (SourceText.ofString code) []
let formattedCode = CodeFormatter.FormatASTAsync(tree) |> Async.RunSynchronously
I've also tried:
let code = "let x = 'A'"
let [|(tree,_)|] = CodeFormatter.ParseAsync(false, code) |> Async.RunSynchronously
let formattedCode = CodeFormatter.FormatASTAsync(tree) |> Async.RunSynchronously
But that has the same issue.
I'm using:
- Fantomas.Core: 6.3.2
- Fantomas.FCS: 6.3.2
- FSharp.Core: 8.0.200
Metadata
Metadata
Assignees
Labels
good first issueLong hanging fruit: easy issue to get your feet wet!Long hanging fruit: easy issue to get your feet wet!