-
-
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
\t in string replaced by ASCII 9 #1695
Comments
I believe extending this regex with fantomas/src/Fantomas/TokenParser.fs Lines 532 to 533 in d8e76d4
Are you interested in submitting a PR? |
Yes. |
Great, please read our Contribution Guidelines. You can add you unit test to SynConstTests.fs. |
I went with idiomatic TDD on this one. So it seems the current code (with no change to Updating |
Issue created from fantomas-online
Code
printfn "Hello\tWorld"
Result
printfn "Hello World"
Problem description
The string is not recognized as trivia so the string from the AST is printed back out (thx @nojaf for quick analysis).
Thus, the
\t
in the string is replaced by ASCII 9 (TAB).via ionide/ionide-vscode-fsharp#1534
Extra information
Options
Fantomas Master at 05/01/2021 14:37:19 - d8e76d4
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
Edit: credits
The text was updated successfully, but these errors were encountered: