From 34fa8ded09d320a6845e1960c589c872839eb84f Mon Sep 17 00:00:00 2001 From: Ivan Zlatev Date: Wed, 17 Aug 2016 11:14:01 +0100 Subject: [PATCH] Highlight body of C# 6 expression bodied members properly. Fixes #638 --- syntaxes/csharp.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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" + } + ] } ] },