fantomas
fantomas copied to clipboard
Unindentation of comment before end of computation expression
Issue created from fantomas-online
Code
seq {
yield! [1;2]
// hi!
}
Result
seq {
yield! [ 1; 2 ]
// hi!
}
Problem description
I think the comment looks much better indented as it initially was, though the code isn't broken.
Extra information
- [ ] The formatted result breaks my code.
- [ ] The formatted result gives compiler warnings.
- [ ] I or my company would be willing to help fix this.
Options
Fantomas master branch at 2022-09-02T11:50:57Z - 164ca1156f2f57d44988aae714aa392de3e9d345
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?
Hi, this looks similar to https://github.com/fsprojects/fantomas/issues/1570. I'm trying to address this in https://github.com/fsprojects/fantomas/pull/2455. It is quite a challenging problem to get right. Thanks for raising this one, it helps motivate me to tinker with that PR.