tbh1 / sublime-notes

A syntax designed to bring syntax highlighting to every day note taking.
76 stars 18 forks source link

C# syntax highlighting doesn't close properly #34

Open addisonlynch opened 5 years ago

addisonlynch commented 5 years ago

Consider the following:

[csharp] public void TestSomething() { Test(delegate { Debug.WriteLine("Test"); }); } [end]

Here, the syntax highlighting does not stop at "[end]"

Yet in the case of:

[csharp] namespace TestNamespace { class Program { public void TestSomething() { Test(delegate { Debug.WriteLine("Test"); }); } } } [end]

The end block is caught correctly.

EduYukio commented 3 years ago

I'm also suffering with this issue, it would be nice if it were solved.