mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(rust): move some keywords & operators to where they belong
This commit is contained in:
parent
cdc45ac6ba
commit
831f37635d
1 changed files with 10 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue