aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/rust/highlights.scm13
1 files changed, 6 insertions, 7 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 66058034..bf2fde49 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -231,13 +231,6 @@
((identifier) @type
(#match? @type "^[A-Z]"))
-(attribute
- (identifier) @_macro
- arguments: (token_tree (identifier) @constant.numeric.integer)
- (#eq? @_macro "derive")
-)
-@special
-
; -------
; Functions
; -------
@@ -270,6 +263,12 @@
; ---
(attribute
+ (identifier) @special
+ arguments: (token_tree (identifier) @type)
+ (#eq? @special "derive")
+)
+
+(attribute
(identifier) @function.macro)
(attribute
[