Added: missing highlighting to `queries/_typescript` (#13250)

* Added: missing highlighting
* moved: delete, typeof, instanceof, void - from keywords to keyword.operator
pull/13293/head
Mykyta 2025-04-07 18:00:03 +03:00 committed by GitHub
parent 29789f2a9f
commit 9cfb8afa99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 4 deletions

View File

@ -64,6 +64,10 @@
(array_pattern
(identifier) @variable.parameter))
(public_field_definition) @punctuation.special
(this_type) @variable.builtin
(type_predicate) @keyword.operator
; Punctuation
; -----------
@ -82,6 +86,7 @@
[
"abstract"
"declare"
"module"
"export"
"infer"
"implements"
@ -127,9 +132,16 @@
">"
] @punctuation.bracket)
(omitting_type_annotation) @punctuation.special
(opting_type_annotation) @punctuation.special
; Literals
; --------
[
(template_literal_type)
] @string
(import_require_clause
(identifier) "="
("require") @keyword)

View File

@ -74,16 +74,12 @@
[
"async"
"debugger"
"delete"
"extends"
"from"
"get"
"new"
"set"
"target"
"typeof"
"instanceof"
"void"
"with"
] @keyword
@ -91,6 +87,10 @@
"of"
"as"
"in"
"delete"
"typeof"
"instanceof"
"void"
] @keyword.operator
[