File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 6.3.3 - 2024-04-12
4+
5+ ### Fixed
6+ * FormatASTAsync loses single quotes for characters. [ #3076 ] ( https://github.com/fsprojects/fantomas/issues/3076 )
7+
38## 6.3.2 - 2024-04-12
49
510### Changed
Original file line number Diff line number Diff line change @@ -335,3 +335,7 @@ bbb\"\"\"
335335let ``unicode null character should be recognized as a trivia item , 2050`` () =
336336 formatSourceString " let s = \"\\ 000\" " config
337337 |> should equal " let s = \"\\ 000\"\n "
338+
339+ [<Test>]
340+ let ``character quotes should be preserved , 3076`` () =
341+ formatAST false " let s = 'A'" config |> should equal " let s = 'A'\n "
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ let mkConstant (creationAide: CreationAide) c r : Constant =
139139 | '\\' -> @" '\\'"
140140 | '\b' -> @" '\b'"
141141 | '\f' -> @" '\f'"
142- | _ -> c.ToString ()
142+ | _ -> $ " ' %c {c}' "
143143
144144 orElse escapedChar
145145 | SynConst.Bytes( bytes, _, r) ->
You can’t perform that action at this time.
0 commit comments