aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/queries/rust/highlights.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 0afb8388..42fc9681 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -274,7 +274,11 @@
(meta_item
(identifier) @function.macro)
(attr_item
- (identifier) @function.macro
+ [
+ (identifier) @function.macro
+ (scoped_identifier
+ name: (identifier) @function.macro)
+ ]
(token_tree (identifier) @function.macro)?)
(inner_attribute_item) @attribute