File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,24 @@ contexts:
260
260
- match : ' \b{{operators_words}}\b'
261
261
scope : keyword.operator.word
262
262
263
+ - match : ' \b(function)(?=\()'
264
+ scope : storage.type.function
265
+ push :
266
+ - include : global
267
+ - match : ' \('
268
+ scope : punctuation.section.parens.begin
269
+ push :
270
+ - match : ' {{identifier}}'
271
+ scope : variable.parameter
272
+ - match : ' ,'
273
+ scope : punctuation.separator
274
+ - match : ' \)'
275
+ scope : punctuation.section.parens.end
276
+ pop : true
277
+ - match : ' {'
278
+ scope : punctuation.section.block.begin
279
+ set : code-scope
280
+
263
281
- include : expression-has-functioncall
264
282
265
283
- match : ' \b{{number}}\b'
Original file line number Diff line number Diff line change @@ -139,6 +139,18 @@ void bitstuff()
139
139
this .x = 1 ;
140
140
// <- variable.language
141
141
142
+ r.sort(function(a, b) { return true ; });
143
+ // ^^^^^^^^ storage.type.function
144
+ // ^ punctuation.section.parens.begin
145
+ // ^ variable.parameter
146
+ // ^ punctuation.separator
147
+ // ^ variable.parameter
148
+ // ^ punctuation.section.parens.end
149
+ // ^ punctuation.section.block.begin
150
+ // ^ punctuation.section.block.end
151
+ // ^ punctuation.section.parens.end
152
+ // ^ punctuation.terminator
153
+
142
154
for (uint i = 0 ; i < m_skills.length(); i++ )
143
155
stuff();
144
156
// <- entity.name.function
You can’t perform that action at this time.
0 commit comments