summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorCormac Relf <web@cormacrelf.net>2022-10-18 11:44:54 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-11-06 14:32:47 +0100
commit15d3849dcfc210e04af65809360b9bc9c50ee383 (patch)
treedfa118a65634c5b6442689bbc00ee421c680bf38 /queries
parent8c7ffaf66beb16cc22c2cf87dc07bf7776a7b2f9 (diff)
highlights(rust): highlight Type in Type::Associated as @type instead of @namespace
Diffstat (limited to 'queries')
-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 01a62773..06366df3 100644
--- a/queries/rust/highlights.scm
+++ b/queries/rust/highlights.scm
@@ -72,6 +72,9 @@
(scoped_type_identifier
path: (identifier) @namespace)
(scoped_type_identifier
+ path: (identifier) @type
+ (#lua-match? @type "^[A-Z]"))
+(scoped_type_identifier
(scoped_identifier
name: (identifier) @namespace))
((scoped_identifier