aboutsummaryrefslogtreecommitdiffstats
path: root/queries/typescript
diff options
context:
space:
mode:
authorMunif Tanjim <hello@muniftanjim.dev>2021-06-26 15:25:57 +0600
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-01 22:50:06 +0200
commitb8d7853b88e8ce4e6710a57b89d15910614ac1ad (patch)
treeaa6161c1c92f3de08aa726d1575f94c727bc1ead /queries/typescript
parentquery: Only highlight predicate name (#1461) (diff)
downloadnvim-treesitter-b8d7853b88e8ce4e6710a57b89d15910614ac1ad.tar
nvim-treesitter-b8d7853b88e8ce4e6710a57b89d15910614ac1ad.tar.gz
nvim-treesitter-b8d7853b88e8ce4e6710a57b89d15910614ac1ad.tar.bz2
nvim-treesitter-b8d7853b88e8ce4e6710a57b89d15910614ac1ad.tar.lz
nvim-treesitter-b8d7853b88e8ce4e6710a57b89d15910614ac1ad.tar.xz
nvim-treesitter-b8d7853b88e8ce4e6710a57b89d15910614ac1ad.tar.zst
nvim-treesitter-b8d7853b88e8ce4e6710a57b89d15910614ac1ad.zip
highlights(typescript): fix indentifier for type imports
Diffstat (limited to 'queries/typescript')
-rw-r--r--queries/typescript/highlights.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm
index 0f318b66f..26725f821 100644
--- a/queries/typescript/highlights.scm
+++ b/queries/typescript/highlights.scm
@@ -20,6 +20,12 @@
(type_identifier) @type
(predefined_type) @type.builtin
+(import_statement "type"
+ (import_clause
+ (named_imports
+ ((import_specifier
+ name: (identifier) @type)))))
+
; punctuation
(type_arguments