feat(rust): move some keywords & operators to where they belong

This commit is contained in:
Amaan Qureshi 2023-04-19 02:25:04 -04:00
parent cdc45ac6ba
commit 831f37635d

View file

@ -185,12 +185,9 @@
[
"default"
"dyn"
"enum"
"extern"
"impl"
"let"
"match"
"move"
"pub"
"struct"
@ -207,18 +204,21 @@
] @keyword.coroutine
[
"ref"
"ref"
(mutable_specifier)
] @type.qualifier
[
"const"
"static"
"const"
"static"
"dyn"
"extern"
] @storageclass
(lifetime ["'" (identifier)] @storageclass.lifetime)
"fn" @keyword.function
[
"return"
"yield"
@ -233,8 +233,9 @@
(visibility_modifier [(crate) (super) (self)] @namespace)
[
"else"
"if"
"else"
"match"
] @conditional
[
@ -246,8 +247,7 @@
] @repeat
"for" @keyword
(for_expression
"for" @repeat)
(for_expression "for" @repeat)
;;; Operators & Punctuation
@ -265,7 +265,6 @@
"+="
"-"
"-="
"->"
".."
"..="
"/"
@ -276,7 +275,6 @@
"<="
"="
"=="
"=>"
">"
">="
">>"
@ -297,7 +295,7 @@
(bracketed_type ["<" ">"] @punctuation.bracket)
(for_lifetimes ["<" ">"] @punctuation.bracket)
["," "." ":" "::" ";"] @punctuation.delimiter
["," "." ":" "::" ";" "->" "=>"] @punctuation.delimiter
(attribute_item "#" @punctuation.special)
(inner_attribute_item ["!" "#"] @punctuation.special)