diff options
author | Chickenkeeper | 2023-01-09 02:26:08 +0000 |
---|---|---|
committer | GitHub | 2023-01-09 02:26:08 +0000 |
commit | 486c3ab0d542f5d502eba4f97446bdeca71afefd (patch) | |
tree | 0500e2e17e7ff851b1e1d7230723cfd90b7c0acf /runtime/queries | |
parent | c4b0eb835639d2c18d940cd0c55093a92169b432 (diff) |
Fix Broken Attribute Highlights (#5349)
* Update highlights.scm
* Update highlights.scm
* Update themes.md
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/rust/highlights.scm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 66058034..bf2fde49 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -231,13 +231,6 @@ ((identifier) @type (#match? @type "^[A-Z]")) -(attribute - (identifier) @_macro - arguments: (token_tree (identifier) @constant.numeric.integer) - (#eq? @_macro "derive") -) -@special - ; ------- ; Functions ; ------- @@ -270,6 +263,12 @@ ; --- (attribute + (identifier) @special + arguments: (token_tree (identifier) @type) + (#eq? @special "derive") +) + +(attribute (identifier) @function.macro) (attribute [ |