For and await highlighting rust (#42924)
Closes #42922 Release Notes: - Fixed Correctly highlighting the 'for' keyword in Rust as keyword.control only in for loops. - Fixed Highlighting the 'await' keyword in Rust as keyword.control
This commit is contained in:
@@ -85,7 +85,6 @@
|
||||
[
|
||||
"as"
|
||||
"async"
|
||||
"await"
|
||||
"const"
|
||||
"default"
|
||||
"dyn"
|
||||
@@ -102,6 +101,7 @@
|
||||
"ref"
|
||||
"static"
|
||||
"struct"
|
||||
"for"
|
||||
"trait"
|
||||
"type"
|
||||
"union"
|
||||
@@ -114,10 +114,10 @@
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"await"
|
||||
"break"
|
||||
"continue"
|
||||
"else"
|
||||
"for"
|
||||
"if"
|
||||
"in"
|
||||
"loop"
|
||||
@@ -127,6 +127,9 @@
|
||||
"yield"
|
||||
] @keyword.control
|
||||
|
||||
(for_expression
|
||||
("for" @keyword.control))
|
||||
|
||||
[
|
||||
(string_literal)
|
||||
(raw_string_literal)
|
||||
|
||||
Reference in New Issue
Block a user