Skip to content

Commit 7439605

Browse files
committed
[rust highlights] fix scoped attribute macro matching
Without this scoped attribute macros are not matched as macros. Eg ``` #[path::macro] ```
1 parent 0c30aee commit 7439605

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/queries/rust/highlights.scm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@
273273
; ---
274274
(meta_item
275275
(identifier) @function.macro)
276+
(attr_item
277+
(scoped_identifier
278+
name: (identifier) @function.macro)
279+
(token_tree (identifier) @function.macro)?)
276280
(attr_item
277281
(identifier) @function.macro
278282
(token_tree (identifier) @function.macro)?)

0 commit comments

Comments
 (0)