aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust/highlights.scm
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-12-12 08:49:57 +0000
committerBlaž Hrastnik2022-12-12 08:50:12 +0000
commitbae890d8faa993333d81e662b6f0a6bc5e921a92 (patch)
treeb71d9ebc86a1a3d080bd57bfa3cca4f7918d94bf /runtime/queries/rust/highlights.scm
parent0b960216433956503e9e6fe5220523eb1970eaee (diff)
Update tree-sitter-scheme
Diffstat (limited to 'runtime/queries/rust/highlights.scm')
-rw-r--r--runtime/queries/rust/highlights.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 5606e93d..d3c29270 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -5,8 +5,6 @@
; overrides are unnecessary.
; -------
-
-
; -------
; Types
; -------
@@ -241,6 +239,14 @@
+(attribute
+ (identifier) @_macro
+ arguments: (token_tree (identifier) @constant.numeric.integer)
+ (#eq? @_macro "derive")
+)
+@special
+
+
; -------
; Functions
; -------
@@ -271,6 +277,7 @@
; ---
; Macros
; ---
+
(attribute
(identifier) @function.macro)
(attribute