fsprojects / FsReveal

FsReveal parses markdown and F# script file and generates reveal.js slides.

Home Page:http://fsprojects.github.io/FsReveal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C# Class sample turns off F# highlighting afterwards

isaacabraham opened this issue · 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
```

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