dotnet / csharp-tmLanguage

Syntax grammar used for C# colorization
MIT License
69 stars 34 forks source link

Indexer parameter in method chaining #317

Closed sharpchen closed 6 months ago

sharpchen commented 8 months ago

Details

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.) vscode What version of the editor are you using? 1.86.1 What color theme are you using? darkplus

Repro

IEnumerable<Person> people = [new("John", 30), new("Jane", 30), new("Modi", 18), new("John", 12)];
people.ToLookup(x => x.Age);
people.ToLookup(x => x.Age)[30];
people.ToLookup(x => x.Name)["John"];

record class Person(string Name, int Age);

image

Please provide a code example and (optionally) a screenshot demonstrating the problem.

sharpchen commented 6 months ago

not reproducible in vscode 1.88.1, looks fine now.