From 486c3ab0d542f5d502eba4f97446bdeca71afefd Mon Sep 17 00:00:00 2001 From: Chickenkeeper Date: Mon, 9 Jan 2023 02:26:08 +0000 Subject: Fix Broken Attribute Highlights (#5349) * Update highlights.scm * Update highlights.scm * Update themes.md--- runtime/queries/rust/highlights.scm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'runtime/queries/rust/highlights.scm') 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 ; ------- @@ -269,6 +262,12 @@ ; Macros ; --- +(attribute + (identifier) @special + arguments: (token_tree (identifier) @type) + (#eq? @special "derive") +) + (attribute (identifier) @function.macro) (attribute -- cgit v1.2.3-70-g09d2