on master help sign in
Update highlight for ecma/js/ts (#6205)
bc50502Erasin Wang
runtime/queries/ecma/highlights.scm+40−19
@@ -167,55 +167,76 @@
167] @punctuation.bracket
167] @punctuation.bracket
168
168
169[
169[
170− "as"
171 "async"
170 "async"
172 "debugger"
171 "debugger"
173 "delete"
172 "delete"
174 "extends"
173 "extends"
175 "from"
174 "from"
176− "function"
177 "get"
175 "get"
178− "in"
179− "instanceof"
180 "new"
176 "new"
181− "of"
182 "set"
177 "set"
183− "static"
184 "target"
178 "target"
185− "try"
186 "typeof"
179 "typeof"
180+ "instanceof"
187 "void"
181 "void"
188 "with"
182 "with"
189] @keyword
183] @keyword
190
184
185+[
186+ "of"
187+ "as"
188+ "in"
189+] @keyword.operator
190+
191+[
192+ "function"
193+] @keyword.function
194+
191[
195[
192 "class"
196 "class"
193 "let"
197 "let"
194− "const"
195 "var"
198 "var"
196] @keyword.storage.type
199] @keyword.storage.type
197
200
198[
201[
199− "switch"
202+ "const"
200− "case"
203+ "static"
204+] @keyword.storage.modifier
205+
206+[
201 "default"
207 "default"
202− "if"
203− "else"
204 "yield"
208 "yield"
205− "throw"
206 "finally"
209 "finally"
207− "return"
208− "catch"
209− "continue"
210− "while"
211− "break"
212− "for"
213 "do"
210 "do"
214 "await"
211 "await"
215] @keyword.control
212] @keyword.control
216
213
214+[
215+ "if"
216+ "else"
217+ "switch"
218+ "case"
219+ "while"
220+] @keyword.control.conditional
221+
222+[
223+ "for"
224+] @keyword.control.repeat
225+
217[
226[
218 "import"
227 "import"
219 "export"
228 "export"
220] @keyword.control.import
229] @keyword.control.import
221
230
231+[
232+ "return"
233+ "break"
234+ "continue"
235+] @keyword.control.return
236+
237+[
238+ "throw"
239+ "try"
240+ "catch"
241+] @keyword.control.exception
242+