Skip to content

Commit

Permalink
[rust highlights] fix scoped attribute macro matching (helix-editor#4659
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 authored and Shekhinah Memmel committed Dec 11, 2022
1 parent 34e45f4 commit 8e1835a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e1835a

Please sign in to comment.