File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,10 @@ contexts:
243
243
set : expression
244
244
245
245
expression-has-namespace-accessor :
246
- - match : ' {{identifier}}(?=::)'
247
- scope : entity.name.namespace
246
+ - match : ' (@)?({{identifier}})(?=::)'
247
+ captures :
248
+ 1 : keyword.other
249
+ 2 : entity.name.namespace
248
250
push :
249
251
- match : ' ::'
250
252
scope : punctuation.separator
Original file line number Diff line number Diff line change @@ -208,6 +208,17 @@ void bitstuff()
208
208
}
209
209
// <- punctuation.section.block.end
210
210
211
+ @ Namespace :: Object = Thing();
212
+ // <- keyword.other
213
+ // ^^^^^^^^^ entity.name.namespace
214
+ // ^^ punctuation.separator
215
+ // ^^^^^^ variable.other
216
+ // ^ keyword.operator.assignment
217
+ // ^^^^^ entity.name.function
218
+ // ^ punctuation.section.parens.begin
219
+ // ^ punctuation.section.parens.end
220
+ // ^ punctuation.terminator
221
+
211
222
int x = SomeNamespace :: SomeFunction();
212
223
// <- storage.type
213
224
// ^ variable.other
You can’t perform that action at this time.
0 commit comments