csharp-tmLanguage
csharp-tmLanguage copied to clipboard
C# syntax highlight glitch when using Tuple return type
Originally found in Github.com and also VSCode.
Details
VSCode 1.34
Repro
public class {
public async Task<
(bool success,
string content)> Func(
ProductModel product,
Settings settings)
{
req1.Headers.Add("Accept", "application/json, text/javascript, */*; q=0.01");
req1.Headers.Add("Referer", $"{ShopBaseDomain}/shop/gd/dtl/goos.do?onlnGoosCd={goosCd}");
}
}
Another form is:
public class A
{
public (int x, int y
) C()
{
M("*/*");
N();
seems like int in int y is misclassified. If we merge ) C() with previous line, it works. Also works if we remove first line (class declaration), or assign value of M like var x = M("*/*");.
This is also #63.