Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/rust/highlights.scm')
| -rw-r--r-- | runtime/queries/rust/highlights.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 898bde6a..89449202 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -174,8 +174,7 @@ (for_expression "for" @keyword.control.repeat) -((identifier) @keyword.control - (#match? @keyword.control "^yield$")) +(gen_block "gen" @keyword.control) "in" @keyword.control @@ -196,6 +195,7 @@ "continue" "return" "await" + "yield" ] @keyword.control.return "use" @keyword.control.import @@ -204,6 +204,10 @@ (type_cast_expression "as" @keyword.operator) +((generic_type + type: (type_identifier) @keyword) + (#eq? @keyword "use")) + [ (crate) (super) @@ -241,6 +245,7 @@ [ "static" "const" + "raw" "ref" "move" "dyn" |