on master help sign in
[rust highlights] fix scoped attribute macro matching (#4659)

Without this scoped attribute macros are not matched as macros. Eg ``` #[path::macro] ```

commit07d31572734dedfd850d9d978fafe80278a88a3d authorAnton Romanov <theli.ua@gmail.com> dateTue 8 Nov 2022, 11:41 (4 years ago) parentd8e9c85
1 file changed+5−1
runtime/queries/rust/highlights.scm+5−1
runtime/queries/rust/highlights.scm+5−1
@@ -274,7 +274,11 @@
274274(meta_item
275275 (identifier) @function.macro)
276276(attr_item
277− (identifier) @function.macro
277+ [
278+ (identifier) @function.macro
279+ (scoped_identifier
280+ name: (identifier) @function.macro)
281+ ]
278282 (token_tree (identifier) @function.macro)?)
279283
280284(inner_attribute_item) @attribute