csharp-tmLanguage icon indicating copy to clipboard operation
csharp-tmLanguage copied to clipboard

C# syntax highlight glitch when using Tuple return type

Open skyline75489 opened this issue 6 years ago • 2 comments

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}");
    }
}

skyline75489 avatar May 30 '19 09:05 skyline75489

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("*/*");.

am11 avatar Dec 07 '19 19:12 am11

This is also #63.

wise0704 avatar Aug 08 '23 09:08 wise0704