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)