csharp-tmLanguage
csharp-tmLanguage copied to clipboard
Non-ASCII identifier syntax highlighting
The following code compiles and run, but the syntax highlighting in GitHub and VSCode do not identify escaped or unescaped non-ascii identifiers properly:
using System;
public class C
{
static string bar() // ✔️
{
return "bar";
}
// static string föö()
static string \u0066\u00F6\u00F6() // ✘ - expected \u0066\u00F6\u00F6 to have same color as bar or Main
{
return "txt";
}
public static void Main()
{
Console.WriteLine(föö()); // ✘ - expected föö to have same color as bar or Main
Console.WriteLine(\u0066\u00F6\u00F6()); // ✘ - expected \u0066\u00F6\u00F6 to have same color as bar or Main
Console.WriteLine(bar()); // ✔️
}
}
