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 9dd61e4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions syntaxes/csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,21 @@
}
]
},
{
"begin": "=>(?!\\s*{)",
"beginCaptures": {
"0": {
"name": "punctuation.section.method.begin.cs"
}
},
"end": "(?=;)",
"name": "meta.method.body.cs",
"patterns": [
{
"include": "#code"
}
]
},
{
"begin": "{",
"beginCaptures": {
Expand Down Expand Up @@ -469,6 +484,21 @@
"include": "#code"
}
]
},
{
"begin": "=>(?!\\s*{)",
"beginCaptures": {
"0": {
"name": "punctuation.section.property.begin.cs"
}
},
"end": "(?=;)",
"name": "meta.method.body.cs",
"patterns": [
{
"include": "#code"
}
]
}
]
}
Expand Down

0 comments on commit 9dd61e4

Please sign in to comment.