mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
highlights(typescript): use more specific groups
This commit is contained in:
parent
fa4b9941e6
commit
46ecf825f0
1 changed files with 24 additions and 18 deletions
|
|
@ -1,24 +1,28 @@
|
||||||
; inherits: ecma
|
; inherits: ecma
|
||||||
|
|
||||||
[
|
[
|
||||||
"abstract"
|
"declare"
|
||||||
"declare"
|
"enum"
|
||||||
"enum"
|
"export"
|
||||||
"export"
|
"implements"
|
||||||
"implements"
|
"interface"
|
||||||
"interface"
|
"keyof"
|
||||||
"keyof"
|
"type"
|
||||||
"namespace"
|
"namespace"
|
||||||
"private"
|
"override"
|
||||||
"protected"
|
"satisfies"
|
||||||
"public"
|
|
||||||
"type"
|
|
||||||
"readonly"
|
|
||||||
"override"
|
|
||||||
"satisfies"
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
(as_expression "as" @keyword)
|
(as_expression "as" @keyword)
|
||||||
|
|
||||||
|
[
|
||||||
|
"abstract"
|
||||||
|
"private"
|
||||||
|
"protected"
|
||||||
|
"public"
|
||||||
|
"readonly"
|
||||||
|
] @type.qualifier
|
||||||
|
|
||||||
; types
|
; types
|
||||||
|
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
|
|
@ -33,10 +37,12 @@
|
||||||
;; punctuation
|
;; punctuation
|
||||||
|
|
||||||
(type_arguments
|
(type_arguments
|
||||||
"<" @punctuation.bracket
|
["<" ">"] @punctuation.bracket)
|
||||||
">" @punctuation.bracket)
|
|
||||||
|
|
||||||
(union_type
|
(type_parameters
|
||||||
|
["<" ">"] @punctuation.bracket)
|
||||||
|
|
||||||
|
(union_type
|
||||||
"|" @punctuation.delimiter)
|
"|" @punctuation.delimiter)
|
||||||
|
|
||||||
(intersection_type
|
(intersection_type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue