From 07d31572734dedfd850d9d978fafe80278a88a3d Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Tue, 8 Nov 2022 11:41:09 -0800 Subject: [rust highlights] fix scoped attribute macro matching (#4659) 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(-) (limited to 'runtime') 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 -- cgit v1.2.3-70-g09d2