C# Method Syntax format grammar recognition
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the two method-signature examples in the C# syntax grammar used for colorization and compare the scopes assigned to the method name. Trace the grammar rules that handle generic return types split across lines; done means both formatting styles recognize FetchUsers as a method name with the expected storage.type.cs scope.
Written by the indexing model from the issue text.
Description
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.

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
- Dominant language
- TypeScript
- Stars
- 78
- Forks
- 43
- Avg merge
- 34m
- Merged PRs (30d)
- 1
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/csharp-tmLanguage
-
C# syntax highlighting broken with collection expressions and string interpolation in method callsOpen
Difficulty 3/5 1-2 days Newbie friendliness 35/100
dotnet/csharp-tmLanguage#332 · 7 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dotnet/csharp-tmLanguage#336 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
dotnet/csharp-tmLanguage#306 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
dotnet/csharp-tmLanguage#304 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
dotnet/csharp-tmLanguage#303 ·
All issues in dotnet/csharp-tmLanguage
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
solana-foundation/solana-com#2245 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
`document.cookie` with `max-age=0` does not delete the cookiePossibly taken @BartInTheField claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
capricorn86/happy-dom#2460 ·
Maintainers usually reply within 2 days