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
{{ message }}
Repository navigation
Custom operator turns into code comment after formatting #3442
moduleMahSignature/// Multiplicationval inline(.*):(unit -> ^a) ->^b ->unit ->^c when (^a or ^b):(static member(*):^a*^b->^c)///Multiplicationval inline (*.):^a->(unit ->^b)->unit ->^c when (^a or ^b):(static member (*):^a*^b->^c)///Multiplicationval inline (.*.):(unit ->^a)->(unit ->^b)->unit ->^c when (^a or ^b):(static member (*):^a*^b->^c)
Result
moduleMahSignature/// Multiplicationval inline(.*):(unit -> ^a) ->^b ->unit ->^c when (^a or ^b):(static member(*):^a*^b->^c)///Multiplicationval inline (*.):^a->(unit ->^b)->unit ->^c when (^a or ^b):(static member (*):^a*^b->^c)///Multiplicationval inline (.*.):(unit ->^a)->(unit ->^b)->unit ->^c when (^a or ^b):(static member (*):^a*^b->^c)
Problem description
The input had space around the operator to avoid this, the format output should do the same.
It might be worth revisiting the style of custom operators at a later stage to always have spaces.
I think some of the style guides might even mention this. A localized fix would be fine for now.
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.
I would like a release if this problem is solved.
Options
Fantomas main branch at 2026-08-28T08:06:07Z - b67bc66
{ config with
SpaceBeforeColon =true}
Signature file
Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.
Activity
Space an operator that starts with a star wherever its name is written