Skip to content

Commit efba14c

Browse files
committed
Fix Var and namespace declaration
- aliases and using-static differences detected, but are working wrong in Sublime so they've been discarded
1 parent 1a982b9 commit efba14c

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

theme-sublime-monokai-csharp-colorizer/syntaxes/csharp.tmLanguage.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
"include": "#verbatim-interpolated-string"
286286
},
287287
{
288-
"include": "#this-or-base-expression"
288+
"include": "#this-or-base-or-value-expression"
289289
},
290290
{
291291
"include": "#switch-expression"
@@ -370,10 +370,10 @@
370370
"begin": "\\b(using)\\b\\s+(static)\\s+",
371371
"beginCaptures": {
372372
"1": {
373-
"name": "keyword.other.using.cs"
373+
"name": "keyword.other.using.using-static.cs"
374374
},
375375
"2": {
376-
"name": "keyword.other.static.cs"
376+
"name": "keyword.other.static.using-static.cs"
377377
}
378378
},
379379
"end": "(?=;)",
@@ -525,7 +525,7 @@
525525
"include": "#comment"
526526
},
527527
{
528-
"name": "entity.name.type.namespace.cs",
528+
"name": "entity.name.type.namespace.declaration.cs",
529529
"match": "@?[_[:alpha:]][_[:alnum:]]*"
530530
},
531531
{
@@ -3214,7 +3214,7 @@
32143214
}
32153215
}
32163216
},
3217-
"this-or-base-expression": {
3217+
"this-or-base-or-value-expression": {
32183218
"match": "\\b(?:(base)|(this)|(value))\\b",
32193219
"captures": {
32203220
"1": {

theme-sublime-monokai-csharp-colorizer/themes/sublime-monokai-color-theme.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"name": "Sublime C# italic keywords",
205-
"scope": "keyword.operator.arrow, keyword.other.class, keyword.other.enum, keyword.type, keyword.other.get, keyword.other.set",
205+
"scope": "keyword.other.var.cs, keyword.other.namespace, keyword.operator.arrow, keyword.other.class, keyword.other.enum, keyword.type, keyword.other.get, keyword.other.set",
206206
"settings": {
207207
"foreground": "#66D9EF",
208208
"fontStyle": "italic"
@@ -238,6 +238,13 @@
238238
"foreground": "#F8F8F2"
239239
}
240240
},
241+
{
242+
"name": "Sublime C# namespace declaration",
243+
"scope": "entity.name.type.namespace.declaration",
244+
"settings": {
245+
"foreground": "#A6E22E"
246+
}
247+
},
241248
{
242249
"name": "Sublime C# template type parameter",
243250
"scope": "entity.name.type.type-parameter",

0 commit comments

Comments
 (0)