Unnamed repository; edit this file 'description' to name the repository.
Fix Rust attribute highlights (#3729)
Michael Davis 2022-09-07
parent 1fe3273 · commit 301f5d7
-rw-r--r--runtime/queries/rust/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 39a764a6..78a7abf0 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -258,6 +258,9 @@
; ---
(meta_item
(identifier) @function.macro)
+(attr_item
+ (identifier) @function.macro
+ (token_tree (identifier) @function.macro)?)
(inner_attribute_item) @attribute