aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rust
diff options
context:
space:
mode:
Diffstat (limited to 'queries/rust')
-rw-r--r--queries/rust/highlights.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm
index 4554db022..c8a7170f2 100644
--- a/queries/rust/highlights.scm
+++ b/queries/rust/highlights.scm
@@ -86,6 +86,18 @@
name: (identifier) @constant)
(#lua-match? @constant "^[A-Z][A-Z%d_]*$"))
+((scoped_identifier
+ path: (identifier) @type
+ name: (identifier) @constant)
+ (#lua-match? @type "^[A-Z]")
+ (#lua-match? @constant "^[A-Z]"))
+
+((scoped_type_identifier
+ path: (identifier) @type
+ name: (type_identifier) @constant)
+ (#lua-match? @type "^[A-Z]")
+ (#lua-match? @constant "^[A-Z]"))
+
[
(crate)
(super)