Skip to content

Commit

Permalink
Highlight body of C# 6 expression bodied members properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanz committed Aug 17, 2016
1 parent fe328c0 commit 34fa8de
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions syntaxes/csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
]
},
Expand Down

0 comments on commit 34fa8de

Please sign in to comment.