Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

C# syntax highlight glitch when using Tuple return #128

Open
skyline75489 opened this issue May 30, 2019 · 4 comments
Open

C# syntax highlight glitch when using Tuple return #128

skyline75489 opened this issue May 30, 2019 · 4 comments

Comments

@skyline75489
Copy link

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
Copy link
Author

I've also submit an issue to upstream dotnet/csharp-tmLanguage#154.

@rsese
Copy link

rsese commented Jun 7, 2019

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

csharp-bug

@skyline75489
Copy link
Author

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?

@xihnik
Copy link

xihnik commented Oct 25, 2020

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants