summaryrefslogtreecommitdiff
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
parentdbbedfec88866213ae9d6e3502337ab1b0bcafe9 (diff)
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 0f318b66..26725f82 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