File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,8 +243,10 @@ contexts:
243243 set : expression
244244
245245 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
248250 push :
249251 - match : ' ::'
250252 scope : punctuation.separator
Original file line number Diff line number Diff line change @@ -208,6 +208,17 @@ void bitstuff()
208208 }
209209 // <- punctuation.section.block.end
210210
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+
211222 int x = SomeNamespace :: SomeFunction();
212223 // <- storage.type
213224 // ^ variable.other
You can’t perform that action at this time.
0 commit comments