FsReveal icon indicating copy to clipboard operation
FsReveal copied to clipboard

C# Class sample turns off F# highlighting afterwards

Open isaacabraham opened this issue 7 years ago • 2 comments

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 ```

isaacabraham avatar Oct 17 '17 13:10 isaacabraham

that's a feature! don't use that language

forki avatar Oct 17 '17 13:10 forki

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
```

xdaDaveShaw avatar Nov 01 '18 23:11 xdaDaveShaw