on master help sign in
[rust highlights] fix scoped attribute macro matching (#4659)
07d3157Anton Romanov
runtime/queries/rust/highlights.scm+5−1
@@ -274,7 +274,11 @@
274(meta_item
274(meta_item
275 (identifier) @function.macro)
275 (identifier) @function.macro)
276(attr_item
276(attr_item
277+ [
278+ (identifier) @function.macro
279+ (scoped_identifier
277− (identifier) @function.macro
280+ name: (identifier) @function.macro)
281+ ]
278 (token_tree (identifier) @function.macro)?)
282 (token_tree (identifier) @function.macro)?)
279
283
280(inner_attribute_item) @attribute
284(inner_attribute_item) @attribute