Highlight and auto-indent await expressions in rust
This commit is contained in:
parent
f7ceebfce3
commit
9f74d6e4ac
2 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@
|
||||||
[
|
[
|
||||||
"as"
|
"as"
|
||||||
"async"
|
"async"
|
||||||
|
"await"
|
||||||
"break"
|
"break"
|
||||||
"const"
|
"const"
|
||||||
"continue"
|
"continue"
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
(assignment_expression)
|
(assignment_expression)
|
||||||
(let_declaration)
|
(let_declaration)
|
||||||
(let_chain)
|
(let_chain)
|
||||||
|
(await_expression)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
(_ "[" "]" @end) @indent
|
(_ "[" "]" @end) @indent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue