diff options
| author | Ananda Umamil <zweimach@zweimach.org> | 2023-06-04 11:04:00 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-04 00:04:00 -0400 |
| commit | 56022e0b0584755fa4f65367be45d82c988cd86e (patch) | |
| tree | 08f0530106adee32aa6f275e0f45e3d244d3b843 /queries/typescript | |
| parent | feat(comment): add support for URIs (diff) | |
| download | nvim-treesitter-56022e0b0584755fa4f65367be45d82c988cd86e.tar nvim-treesitter-56022e0b0584755fa4f65367be45d82c988cd86e.tar.gz nvim-treesitter-56022e0b0584755fa4f65367be45d82c988cd86e.tar.bz2 nvim-treesitter-56022e0b0584755fa4f65367be45d82c988cd86e.tar.lz nvim-treesitter-56022e0b0584755fa4f65367be45d82c988cd86e.tar.xz nvim-treesitter-56022e0b0584755fa4f65367be45d82c988cd86e.tar.zst nvim-treesitter-56022e0b0584755fa4f65367be45d82c988cd86e.zip | |
feat(typescript): highlight `is` and `:` in type predicate
Diffstat (limited to 'queries/typescript')
| -rw-r--r-- | queries/typescript/highlights.scm | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
