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

C# syntax highlight glitch when using Tuple return

Open skyline75489 opened this issue 5 years ago • 4 comments

Prerequisites

The issue was found in our private repo in Github.com. I've contact Github support which leads me to linguist repo which then leads me here.

Description

The highlighter seems to falsely believe there's comment when Tuple return is used.

Steps to Reproduce

This is the minimum reproductive example I've managed to make to demostrate the issue:

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

Additional Information

None

skyline75489 avatar May 30 '19 09:05 skyline75489

I've also submit an issue to upstream https://github.com/dotnet/csharp-tmLanguage/issues/154.

skyline75489 avatar May 30 '19 09:05 skyline75489

Thanks @skyline75489 - reproduced with 1.39.0-nightly19 on macOS 10.12.6.

csharp-bug

rsese avatar Jun 07 '19 22:06 rsese

Hi @rsese . Is this project discontinued? It has no activity for the last 2 year. Is there anything we could help to continue the work?

skyline75489 avatar May 14 '20 01:05 skyline75489

xihnik avatar Oct 25 '20 02:10 xihnik