Skip to content

Commit 8f35457

Browse files
committed
fix variable highlights
1 parent 2a0a4a3 commit 8f35457

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

public_grammars/cesium.tmGrammar.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"captures": {
104104
"1": { "name": "keyword.storage.cesium" },
105105
"2": { "name": "storage.type.cesium" },
106-
"3": { "name": "variable.other.member.cesium" },
106+
"3": { "name": "variable.other.property.cesium" },
107107
"4": { "name": "constant.other.cesium" }
108108
}
109109
},
@@ -112,7 +112,7 @@
112112
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*(?:\\[[^\\]]*\\])?)\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s*=\\s*([^;]+))?;",
113113
"captures": {
114114
"1": { "name": "storage.type.cesium" },
115-
"2": { "name": "variable.other.member.cesium" },
115+
"2": { "name": "variable.other.property.cesium" },
116116
"3": { "name": "constant.other.cesium" }
117117
}
118118
}
@@ -256,7 +256,19 @@
256256
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b"
257257
},
258258
{
259-
"name": "variable.other.cesium",
259+
"name": "variable.language.cesium",
260+
"match": "\\b(this|super|self)\\b"
261+
},
262+
{
263+
"name": "variable.other.property.cesium",
264+
"match": "\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\.[a-zA-Z_])"
265+
},
266+
{
267+
"name": "variable.other.property.cesium",
268+
"match": "(?<=\\.)[a-zA-Z_][a-zA-Z0-9_]*"
269+
},
270+
{
271+
"name": "variable.other.readwrite.cesium",
260272
"match": "\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
261273
}
262274
]

0 commit comments

Comments
 (0)