FsReveal
FsReveal copied to clipboard
C# Class sample turns off F# highlighting afterwards
The following sample turns off highlighting for the F# snippet. However, if you invert them, the F# code is correctly set. Also, replacing the C# sample with var x = 1;
leaves F# highlighting intact.
```csharp class Employee { } ``` *** ```fsharp type Foo = | A | B | C ```
that's a feature! don't use that language
How else do you shame C#? ;)
I noticed this when using C#'s String Interpolation.
This works:
```csharp class C {} ``` --- ```fsharp let x = 10 ```
This doesn't:
```csharp void Foo(int x) => $"{x}"; ``` --- ```fsharp let x = 10 ```