diff options
author | Anton Romanov | 2022-11-08 19:41:09 +0000 |
---|---|---|
committer | GitHub | 2022-11-08 19:41:09 +0000 |
commit | 07d31572734dedfd850d9d978fafe80278a88a3d (patch) | |
tree | 0c1f370235a44b64e282679d6f6fc3665d7356b8 /runtime | |
parent | d8e9c85f5ec10433eb17f8f240e08e765a218cfa (diff) |
[rust highlights] fix scoped attribute macro matching (#4659)
Without this scoped attribute macros are not matched as macros.
Eg
```
#[path::macro]
```
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/rust/highlights.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 0afb8388..42fc9681 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -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 |