highlights(typescript): use more specific groups

This commit is contained in:
ObserverOfTime 2022-10-22 16:46:12 +03:00
parent fa4b9941e6
commit 46ecf825f0

View file

@ -1,24 +1,28 @@
; inherits: ecma
[
"abstract"
"declare"
"enum"
"export"
"implements"
"interface"
"keyof"
"namespace"
"private"
"protected"
"public"
"type"
"readonly"
"override"
"satisfies"
"declare"
"enum"
"export"
"implements"
"interface"
"keyof"
"type"
"namespace"
"override"
"satisfies"
] @keyword
(as_expression "as" @keyword)
[
"abstract"
"private"
"protected"
"public"
"readonly"
] @type.qualifier
; types
(type_identifier) @type
@ -33,10 +37,12 @@
;; punctuation
(type_arguments
"<" @punctuation.bracket
">" @punctuation.bracket)
["<" ">"] @punctuation.bracket)
(union_type
(type_parameters
["<" ">"] @punctuation.bracket)
(union_type
"|" @punctuation.delimiter)
(intersection_type