tree-sitter / tree-sitter-c-sharp

C# Grammar for tree-sitter
MIT License
177 stars 47 forks source link

Highlight lambda expressions with specified return values (C# 10). #308

Closed patrickt closed 1 year ago

patrickt commented 1 year ago

Beginning in C# 10, you can specify the return type of a lambda expression using syntactic constructs you'd associate with a standard (non-lambda) method declaration. This ensures they're highlighted correctly.