diff --git a/syntaxes/csharp.json b/syntaxes/csharp.json index ff1ed791be..0f66c5798d 100644 --- a/syntaxes/csharp.json +++ b/syntaxes/csharp.json @@ -81,6 +81,26 @@ "include": "#code" } ] + }, + { + "begin": "=>(?!\\s*{)", + "beginCaptures": { + "0": { + "name": "punctuation.section.block.begin.cs" + } + }, + "end": ";", + "endCaptures": { + "0": { + "name": "punctuation.section.block.end.cs" + } + }, + "name": "meta.block.cs", + "patterns": [ + { + "include": "#code" + } + ] } ] },