File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -302,8 +302,10 @@ contexts:
302
302
| Uint(?: 8 | 16 | 32 | 64)Array | XMLHttpRequest | Symbol )\b
303
303
scope: support.class.coffee
304
304
# user function calls
305
- - match : ' {{identifier}}(?=\()'
305
+ - match : (@?) {{identifier}}(?=\()
306
306
scope : meta.function-call.identifier.coffee variable.function.coffee
307
+ captures :
308
+ 1 : punctuation.definition.variable.coffee
307
309
push : function-call-argument-list
308
310
309
311
function-call-argument-list :
Original file line number Diff line number Diff line change @@ -366,6 +366,33 @@ class App.Router extends Snakeskin.Router
366
366
# ^ punctuation.section.group.begin.coffee
367
367
# ^ punctuation.section.group.end.coffee
368
368
369
+ ### [ USER FUNCTIONS ]### # ######################################################
370
+
371
+ func ()
372
+ # ^^^^ meta.function-call.identifier.coffee variable.function.coffee
373
+ # ^^ meta.function-call.arguments.coffee
374
+
375
+ $func ()
376
+ # ^^^^^ meta.function-call.identifier.coffee variable.function.coffee
377
+ # ^^ meta.function-call.arguments.coffee
378
+
379
+ $ (' ' )
380
+ # ^ meta.function-call.identifier.coffee variable.function.coffee
381
+ # ^^^^ meta.function-call.arguments.coffee
382
+
383
+ @ name ()
384
+ # ^^^^^ meta.function-call.identifier.coffee variable.function.coffee
385
+ # ^^ meta.function-call.arguments.coffee
386
+
387
+ @ $ (' #notification' )
388
+ # ^^ meta.function-call.identifier.coffee variable.function.coffee
389
+ # ^^^^^^^^^^^^^^^^^ meta.function-call.arguments.coffee
390
+ # ^ punctuation.definition.variable.coffee
391
+ # ^ variable.function.coffee
392
+ # ^ punctuation.section.group.begin.coffee
393
+ # ^^^^^^^^^^^^^^^ meta.string.coffee string.quoted.single.coffee
394
+ # ^ punctuation.section.group.end.coffee
395
+
369
396
### [ OBJECT MEMBERS ]### # ######################################################
370
397
371
398
this .key
You can’t perform that action at this time.
0 commit comments