You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen an analogue of this case appear or disappear depending on whether let a = is let a, b = or just let a =. However, for this particular reproduction, it turns out not to matter. I expected the printfn to be unindented one scope from where Fantomas put it.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
It does work if you flip the | true -> failwith "" on top, see example.
As I understood it so far, only the last branch or clause will do keep indent stuff.
Any reason the short clause is not the last one here?
Ah, I see. I've forgotten the context I actually had in mind when I raised this, but it is very possible you're right and I was just being over-eager. I'll see if I can find why I raised this.
Issue created from fantomas-online
Code
Result
Problem description
I've seen an analogue of this case appear or disappear depending on whether
let a =
islet a, b =
or justlet a =
. However, for this particular reproduction, it turns out not to matter. I expected theprintfn
to be unindented one scope from where Fantomas put it.Extra information
Options
Fantomas Master at 07/07/2021 07:46:28 - 6f0df78
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: