From 2a6d5143c55b2e4d51a3552ee024263bd6885ad1 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Tue, 8 Nov 2022 18:25:13 +0000 Subject: [PATCH] [rust highlights] fix scoped attribute macro matching Without this scoped attribute macros are not matched as macros. Eg ``` #[path::macro] ``` --- runtime/queries/rust/highlights.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 0afb8388efbb..42fc96814786 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