From 00b42ac6d4c852d34619eaf2ea822266588d75e3 Mon Sep 17 00:00:00 2001 From: Trard Date: Sat, 15 Oct 2022 15:47:15 +0300 Subject: rust: use @type.qualifier and @storageclass --- queries/rust/highlights.scm | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'queries/rust') diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index 779309f6..c7cd1174 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -25,7 +25,6 @@ (self) @variable.builtin -(lifetime ["'" (identifier)] @label) (loop_label ["'" (identifier)] @label) @@ -172,7 +171,6 @@ [ "async" "await" - "const" "default" "dyn" "enum" @@ -182,17 +180,26 @@ "match" "move" "pub" - "ref" - "static" "struct" "trait" "type" "union" "unsafe" "where" - (mutable_specifier) ] @keyword +[ + "ref" + (mutable_specifier) +] @type.qualifier + +[ + "const" + "static" +] @storageclass + +(lifetime ["'" (identifier)] @storageclass.lifetime) + "fn" @keyword.function [ "return" -- cgit v1.2.3