|
|
@ -111,23 +111,31 @@
|
|
|
|
; -------
|
|
|
|
; -------
|
|
|
|
|
|
|
|
|
|
|
|
(for_expression
|
|
|
|
(for_expression
|
|
|
|
"for" @keyword.control)
|
|
|
|
"for" @keyword.control.repeat)
|
|
|
|
((identifier) @keyword.control
|
|
|
|
((identifier) @keyword.control
|
|
|
|
(#match? @keyword.control "^yield$"))
|
|
|
|
(#match? @keyword.control "^yield$"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"in" @keyword.control
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"match"
|
|
|
|
|
|
|
|
"if"
|
|
|
|
|
|
|
|
"else"
|
|
|
|
|
|
|
|
] @keyword.control.conditional
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"while"
|
|
|
|
"while"
|
|
|
|
"loop"
|
|
|
|
"loop"
|
|
|
|
"in"
|
|
|
|
] @keyword.control.repeat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
"break"
|
|
|
|
"break"
|
|
|
|
"continue"
|
|
|
|
"continue"
|
|
|
|
|
|
|
|
|
|
|
|
"match"
|
|
|
|
|
|
|
|
"if"
|
|
|
|
|
|
|
|
"else"
|
|
|
|
|
|
|
|
"return"
|
|
|
|
"return"
|
|
|
|
|
|
|
|
|
|
|
|
"await"
|
|
|
|
"await"
|
|
|
|
] @keyword.control
|
|
|
|
] @keyword.control.return
|
|
|
|
|
|
|
|
|
|
|
|
"use" @keyword.control.import
|
|
|
|
"use" @keyword.control.import
|
|
|
|
(mod_item "mod" @keyword.control.import !body)
|
|
|
|
(mod_item "mod" @keyword.control.import !body)
|
|
|
@ -143,24 +151,28 @@
|
|
|
|
"mod"
|
|
|
|
"mod"
|
|
|
|
"extern"
|
|
|
|
"extern"
|
|
|
|
|
|
|
|
|
|
|
|
"struct"
|
|
|
|
|
|
|
|
"enum"
|
|
|
|
|
|
|
|
"impl"
|
|
|
|
"impl"
|
|
|
|
"where"
|
|
|
|
"where"
|
|
|
|
"trait"
|
|
|
|
"trait"
|
|
|
|
"for"
|
|
|
|
"for"
|
|
|
|
|
|
|
|
|
|
|
|
"type"
|
|
|
|
|
|
|
|
"union"
|
|
|
|
|
|
|
|
"unsafe"
|
|
|
|
"unsafe"
|
|
|
|
"default"
|
|
|
|
"default"
|
|
|
|
"macro_rules!"
|
|
|
|
"macro_rules!"
|
|
|
|
|
|
|
|
|
|
|
|
"let"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"async"
|
|
|
|
"async"
|
|
|
|
] @keyword
|
|
|
|
] @keyword
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"struct"
|
|
|
|
|
|
|
|
"enum"
|
|
|
|
|
|
|
|
"union"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"type"
|
|
|
|
|
|
|
|
] @keyword.storage.type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"let" @keyword.storage
|
|
|
|
|
|
|
|
|
|
|
|
"fn" @keyword.function
|
|
|
|
"fn" @keyword.function
|
|
|
|
|
|
|
|
|
|
|
|
(mutable_specifier) @keyword.storage.modifier.mut
|
|
|
|
(mutable_specifier) @keyword.storage.modifier.mut
|
|
|
|