@@ -67,6 +67,10 @@ scopes:
67
67
' variable.other.object.property'
68
68
]
69
69
70
+ ' member_expression > property_identifier' : ' variable.other.object.property.unquoted'
71
+
72
+ ' formal_parameters > identifier' : ' formal-parameter.identifier'
73
+
70
74
' shorthand_property_identifier' : [
71
75
{
72
76
match : ' ^[\$ A-Z_]{2,}$' ,
@@ -83,14 +87,15 @@ scopes:
83
87
jsx_opening_element > identifier,
84
88
jsx_closing_element > identifier,
85
89
jsx_self_closing_element > identifier,
86
- call_expression > identifier
87
90
' : [
88
91
{
89
92
match : ' ^[A-Z]' ,
90
- scopes : ' meta.class'
91
- },
93
+ scopes : ' meta.class.component.jsx '
94
+ }
92
95
]
93
96
97
+ ' call_expression > identifier' : {match : ' ^[A-Z]' , scopes : ' meta.class' }
98
+
94
99
' function > identifier' : ' entity.name.function'
95
100
' generator_function > identifier' : ' entity.name.function'
96
101
@@ -106,9 +111,13 @@ scopes:
106
111
107
112
' identifier' : [
108
113
{
109
- match : ' ^(global|module|exports|__filename|__dirname|window|document )$' ,
114
+ match : ' ^(global|module|exports|__filename|__dirname)$' ,
110
115
scopes : ' support.variable'
111
116
},
117
+ {
118
+ match : ' ^(window|event|document|performance|screen|navigator|console)$'
119
+ scopes : ' support.variable.dom'
120
+ },
112
121
{
113
122
exact : ' require' ,
114
123
scopes : ' support.function'
@@ -199,7 +208,7 @@ scopes:
199
208
' "|"' : ' keyword.operator.js'
200
209
' "++"' : ' keyword.operator.js'
201
210
' "--"' : ' keyword.operator.js'
202
- ' "..."' : ' keyword.operator.js'
211
+ ' "..."' : ' keyword.operator.spread. js'
203
212
204
213
' "in"' : ' keyword.operator.in'
205
214
' "instanceof"' : ' keyword.operator.instanceof'
0 commit comments