Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# Class sample turns off F# highlighting afterwards #113

Open
isaacabraham opened this issue Oct 17, 2017 · 2 comments
Open

C# Class sample turns off F# highlighting afterwards #113

isaacabraham opened this issue Oct 17, 2017 · 2 comments

Comments

@isaacabraham
Copy link

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

@forki
Copy link
Member

forki commented Oct 17, 2017

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

@xdaDaveShaw
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants