dotnet / csharp-tmLanguage

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

[Textmate] Lambda with attribute #303

Open sharpchen opened 10 months ago

sharpchen commented 10 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.85.1 What color theme are you using? Dark plus

Repro

var concat = ([DisallowNull] string a, [DisallowNull] string b) => a + b;
var inc = [return: NotNullIfNotNull(nameof(s))] (int? s) => s.HasValue ? s++ : null;
Func<string?, int?> parse = [ProvidesNullCheck] (s) => (s is not null) ? int.Parse(s) : null;

image

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