@@ -30,8 +30,8 @@ contexts:
30
30
31
31
script :
32
32
- include : classes
33
- - include : keywords
34
33
- include : functions
34
+ - include : keywords
35
35
- include : jsx-tags
36
36
- include : expressions
37
37
@@ -155,7 +155,7 @@ contexts:
155
155
branch_point : function
156
156
branch :
157
157
- function-name
158
- - immediately-pop
158
+ - variable
159
159
- match : ' [=-]>'
160
160
scope : keyword.declaration.function.coffee
161
161
@@ -353,41 +353,41 @@ contexts:
353
353
354
354
keywords :
355
355
# export/import
356
- - match : export(?!\s*:) \b
356
+ - match : export\b
357
357
scope : keyword.control.export.coffee
358
- - match : (?:import|from)(?!\s*:) \b
358
+ - match : (?:import|from)\b
359
359
scope : keyword.control.import.coffee
360
360
# excpetion
361
- - match : (?:catch|finally|try)(?!\s*:) \b
361
+ - match : (?:catch|finally|try)\b
362
362
scope : keyword.control.exception.coffee
363
363
# conditional
364
- - match : if(?!\s*:) \b
364
+ - match : if\b
365
365
scope : keyword.control.conditional.if.coffee
366
- - match : else(?!\s*:) \b
366
+ - match : else\b
367
367
scope : keyword.control.conditional.else.coffee
368
- - match : switch(?!\s*:) \b
368
+ - match : switch\b
369
369
scope : keyword.control.conditional.switch.coffee
370
- - match : then(?!\s*:) \b
370
+ - match : then\b
371
371
scope : keyword.control.conditional.then.coffee
372
- - match : unless(?!\s*:) \b
372
+ - match : unless\b
373
373
scope : keyword.control.conditional.unless.coffee
374
- - match : when(?!\s*:) \b
374
+ - match : when\b
375
375
scope : keyword.control.conditional.when.coffee
376
376
# loop
377
- - match : by(?!\s*:) \b
377
+ - match : by\b
378
378
scope : keyword.control.loop.by.coffee
379
- - match : do(?!\s*:) \b
379
+ - match : do\b
380
380
scope : keyword.control.loop.do.coffee
381
- - match : for(?:\s+own)?(?!\s*:) \b
381
+ - match : for(?:\s+own)?\b
382
382
scope : keyword.control.loop.for.coffee
383
- - match : loop(?!\s*:) \b
383
+ - match : loop\b
384
384
scope : keyword.control.loop.loopcoffee
385
- - match : until(?!\s*:) \b
385
+ - match : until\b
386
386
scope : keyword.control.loop.until.coffee
387
- - match : while(?!\s*:) \b
387
+ - match : while\b
388
388
scope : keyword.control.loop.while.coffee
389
389
# flow
390
- - match : (?:await|break|continue|return|throw|yield(?:\s+from)?)(?!\s*:) \b
390
+ - match : (?:await|break|continue|return|throw|yield(?:\s+from)?)\b
391
391
scope : keyword.control.flow.coffee
392
392
# other
393
393
- match : (?:debugger\b|\\)
@@ -805,6 +805,24 @@ contexts:
805
805
- match : ' {{identifier}}'
806
806
scope : variable.other.readwrite.coffee
807
807
808
+ variable :
809
+ - match : (?:this|extends)(?!\s*[:=])\b
810
+ scope : variable.language.coffee
811
+ pop : 1
812
+ - match : ({{identifier}})?(\.)
813
+ captures :
814
+ 1 : variable.other.object.coffee
815
+ 2 : punctuation.accessor.dot.coffee
816
+ set : member
817
+ - match : (@)(?:{{identifier}})?
818
+ scope : variable.other.member.coffee
819
+ captures :
820
+ 1 : punctuation.definition.variable.coffee
821
+ pop : 1
822
+ - match : ' {{identifier}}'
823
+ scope : variable.other.readwrite.coffee
824
+ pop : 1
825
+
808
826
member :
809
827
- meta_scope : meta.path.coffee
810
828
# member objects
0 commit comments