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

C# syntax highlight glitch when using Tuple return #128

@skyline75489

Description

@skyline75489

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions