From 56022e0b0584755fa4f65367be45d82c988cd86e Mon Sep 17 00:00:00 2001 From: Ananda Umamil Date: Sun, 4 Jun 2023 11:04:00 +0700 Subject: [PATCH] feat(typescript): highlight `is` and `:` in type predicate --- queries/typescript/highlights.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index d23a918f9..7aaa3fca2 100644 --- a/queries/typescript/highlights.scm +++ b/queries/typescript/highlights.scm @@ -13,6 +13,7 @@ "satisfies" "module" "infer" + "is" ] @keyword (as_expression "as" @keyword) @@ -57,6 +58,9 @@ (type_annotation ":" @punctuation.delimiter) +(type_predicate_annotation + ":" @punctuation.delimiter) + (index_signature ":" @punctuation.delimiter)