Skip to content

Commit

Permalink
[rust highlights] fix scoped attribute macro matching
Browse files Browse the repository at this point in the history
Without this scoped attribute macros are not matched as macros.
Eg
```
  #[path::macro]
```
  • Loading branch information
theli-ua committed Nov 8, 2022
1 parent 0c30aee commit 7439605
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@
; ---
(meta_item
(identifier) @function.macro)
(attr_item
(scoped_identifier
name: (identifier) @function.macro)
(token_tree (identifier) @function.macro)?)
(attr_item
(identifier) @function.macro
(token_tree (identifier) @function.macro)?)
Expand Down

0 comments on commit 7439605

Please sign in to comment.