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

C# Method Syntax format grammar recognition

Open alexr00 opened this issue 6 years ago • 1 comments

From @CCludts on January 3, 2019 5:47

The method name is only recognized as source.cs instead of storage.type.cs when formatting function signatures in certain cases.

image

public class Hello {
    // correct syntax highlighting
    public Task<(string users, string missingUserIds, string unprocessedUserIds)> FetchUsers() {
        return null;
    }

    // different formatting. breaks syntax highlighting
    public Task<(
            string users,
            string missingUserIds,
            string unprocessedUserIds)> FetchUsers() {
        return null;
    }
}

Copied from original issue: Microsoft/vscode#65951

alexr00 avatar Jan 07 '19 14:01 alexr00

This is a duplicate of https://github.com/dotnet/csharp-tmLanguage/issues/63.

DustinCampbell avatar Jan 08 '19 17:01 DustinCampbell