Skip to content

Commit

Permalink
Fix highlighting of nested namespaces and using statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanz committed Aug 18, 2016
1 parent fe328c0 commit 8c77f7f
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions syntaxes/csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,26 @@
"foldingStopMarker": "^\\s*#\\s*endregion|^\\s*\\*/|^\\s*\\}",
"patterns": [
{
"include": "#using"
},
{
"include": "#namespace"
},
{
"include": "#code"
}
],
"repository": {
"using": {
"begin": "^\\s*(using)\\b\\s*",
"captures": {
"1": {
"name": "keyword.other.using.cs"
}
},
"begin": "^\\s*(using)\\b\\s*",
"end": "\\s*(?:$|(;))",
"name": "meta.keyword.using.cs"
"end": "\\s*(?:$|;)"
},
{
"namespace": {
"begin": "^\\s*((namespace)\\s+([\\w.]+))",
"beginCaptures": {
"1": {
Expand Down Expand Up @@ -48,18 +58,19 @@
"end": "(?=})",
"name": "meta.namespace.body.cs",
"patterns": [
{
"include": "#using"
},
{
"include": "#namespace"
},
{
"include": "#code"
}
]
}
]
},
{
"include": "#code"
}
],
"repository": {
"block": {
"patterns": [
{
Expand Down

0 comments on commit 8c77f7f

Please sign in to comment.