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.