fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
772 stars 194 forks source link

Raw method names with `/` are formatted improperly #406

Closed ForNeVeR closed 5 years ago

ForNeVeR commented 5 years ago

Description

I have a method named ``/ operator combines paths``, and Fantomas breaks the code when formatting this method.

Repro code

Here it is.

nojaf commented 5 years ago

/ operator combines paths is being mistaken for an infix operator in (|OpNameFull|).

Not sure if this should be fixed here or in FCS. Perhaps this is not a bug on either side.

A workaround for you could be to just put another space before the /, like this.