-
-
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
FormatASTAsync loses single quotes for characters #3076
Comments
I've just tried reproducing it from within a test in Fantomas, but that does work 🤔 I'll do some more digging. |
Yeah, this is more or less to be expected. fantomas/src/Fantomas.Core/ASTTransformer.fs Line 142 in 4d5e5e2
In practice, the value of
I would accept a PR fix for this. |
Thanks! formatSourceString "let s = 'A'" config
|> should equal "let s = 'A'\n" works, but formatAST false "let s = 'A'" config
|> should equal "let s = 'A'\n" doesn't. I'll see if I can figure it out :) |
I've opened a PR: #3077 |
I've been using
FormatASTAsync
to format my code, but I found out that it is removed the single quotes from characters.I've also tried:
But that has the same issue.
I'm using:
The text was updated successfully, but these errors were encountered: