on master help sign in
Update highlight for ecma/js/ts (#6205)
commitbc50502b1eef4971d3d3a5518386888bf43ccf8b authorErasin Wang <erasinoo@gmail.com> dateTue 7 Mar 2023, 00:15 (4 years ago) parentcfb9986
1 file changed+40−19
runtime/queries/ecma/highlights.scm+40−19
runtime/queries/ecma/highlights.scm+40−19
@@ -167,55 +167,76 @@
167167] @punctuation.bracket
168168
169169[
170− "as"
171170 "async"
172171 "debugger"
173172 "delete"
174173 "extends"
175174 "from"
176− "function"
177175 "get"
178− "in"
179− "instanceof"
180176 "new"
181− "of"
182177 "set"
183− "static"
184178 "target"
185− "try"
186179 "typeof"
180+ "instanceof"
187181 "void"
188182 "with"
189183] @keyword
190184
185+[
186+ "of"
187+ "as"
188+ "in"
189+] @keyword.operator
190+
191+[
192+ "function"
193+] @keyword.function
194+
191195[
192196 "class"
193197 "let"
194− "const"
195198 "var"
196199] @keyword.storage.type
197200
198201[
199− "switch"
200− "case"
202+ "const"
203+ "static"
204+] @keyword.storage.modifier
205+
206+[
201207 "default"
202− "if"
203− "else"
204208 "yield"
205− "throw"
206209 "finally"
207− "return"
208− "catch"
209− "continue"
210− "while"
211− "break"
212− "for"
213210 "do"
214211 "await"
215212] @keyword.control
216213
214+[
215+ "if"
216+ "else"
217+ "switch"
218+ "case"
219+ "while"
220+] @keyword.control.conditional
221+
222+[
223+ "for"
224+] @keyword.control.repeat
225+
217226[
218227 "import"
219228 "export"
220229] @keyword.control.import
221230
231+[
232+ "return"
233+ "break"
234+ "continue"
235+] @keyword.control.return
236+
237+[
238+ "throw"
239+ "try"
240+ "catch"
241+] @keyword.control.exception
242+