summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-08-07 10:47:39 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-08-07 15:03:20 +0200
commit6133257ed6dcaec35feaa31f9afa0245668dfe48 (patch)
tree548c6ef083c0f2259334b2bfb36365b97d39b752
parent94a505626991f2423dc3b986186f2f6cb857aabb (diff)
highlights(rust): fix some type highlights.
-rw-r--r--queries/rust/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm
index 3c485970..9b873b2f 100644
--- a/queries/rust/highlights.scm
+++ b/queries/rust/highlights.scm
@@ -43,6 +43,9 @@
name: (identifier) @type)
(#match? @type "^[A-Z]"))
+(use_list (identifier) @type (#match? @type "^[A-Z]"))
+(use_as_clause alias: (identifier) @type (#match? @type "^[A-Z]"))
+
;; Correct enum constructors
(call_expression
function: (scoped_identifier