mirror of https://github.com/helix-editor/helix
Added: missing highlighting to `queries/_typescript` (#13250)
* Added: missing highlighting * moved: delete, typeof, instanceof, void - from keywords to keyword.operatorpull/13293/head
parent
29789f2a9f
commit
9cfb8afa99
|
@ -64,6 +64,10 @@
|
||||||
(array_pattern
|
(array_pattern
|
||||||
(identifier) @variable.parameter))
|
(identifier) @variable.parameter))
|
||||||
|
|
||||||
|
(public_field_definition) @punctuation.special
|
||||||
|
(this_type) @variable.builtin
|
||||||
|
(type_predicate) @keyword.operator
|
||||||
|
|
||||||
; Punctuation
|
; Punctuation
|
||||||
; -----------
|
; -----------
|
||||||
|
|
||||||
|
@ -82,6 +86,7 @@
|
||||||
[
|
[
|
||||||
"abstract"
|
"abstract"
|
||||||
"declare"
|
"declare"
|
||||||
|
"module"
|
||||||
"export"
|
"export"
|
||||||
"infer"
|
"infer"
|
||||||
"implements"
|
"implements"
|
||||||
|
@ -127,9 +132,16 @@
|
||||||
">"
|
">"
|
||||||
] @punctuation.bracket)
|
] @punctuation.bracket)
|
||||||
|
|
||||||
|
(omitting_type_annotation) @punctuation.special
|
||||||
|
(opting_type_annotation) @punctuation.special
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
; --------
|
; --------
|
||||||
|
|
||||||
[
|
[
|
||||||
(template_literal_type)
|
(template_literal_type)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
|
(import_require_clause
|
||||||
|
(identifier) "="
|
||||||
|
("require") @keyword)
|
||||||
|
|
|
@ -74,16 +74,12 @@
|
||||||
[
|
[
|
||||||
"async"
|
"async"
|
||||||
"debugger"
|
"debugger"
|
||||||
"delete"
|
|
||||||
"extends"
|
"extends"
|
||||||
"from"
|
"from"
|
||||||
"get"
|
"get"
|
||||||
"new"
|
"new"
|
||||||
"set"
|
"set"
|
||||||
"target"
|
"target"
|
||||||
"typeof"
|
|
||||||
"instanceof"
|
|
||||||
"void"
|
|
||||||
"with"
|
"with"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
@ -91,6 +87,10 @@
|
||||||
"of"
|
"of"
|
||||||
"as"
|
"as"
|
||||||
"in"
|
"in"
|
||||||
|
"delete"
|
||||||
|
"typeof"
|
||||||
|
"instanceof"
|
||||||
|
"void"
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue