mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
feat(typescript): highlight is and : in type predicate
This commit is contained in:
parent
48f4f3ead1
commit
56022e0b05
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
"satisfies"
|
"satisfies"
|
||||||
"module"
|
"module"
|
||||||
"infer"
|
"infer"
|
||||||
|
"is"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
(as_expression "as" @keyword)
|
(as_expression "as" @keyword)
|
||||||
|
|
@ -57,6 +58,9 @@
|
||||||
(type_annotation
|
(type_annotation
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
(type_predicate_annotation
|
||||||
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
(index_signature
|
(index_signature
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue