diff options
author | memoryruins <[email protected]> | 2019-03-28 22:38:59 +0000 |
---|---|---|
committer | memoryruins <[email protected]> | 2019-03-28 22:38:59 +0000 |
commit | abe96a4765785382e366f4f01d06e86fa76bbca3 (patch) | |
tree | 73970a5bc0c48f2d4b4eef9b82f99d86aeaaf8a3 /crates/ra_parser/src/grammar/expressions | |
parent | 849d7428aa6b733d452b2ebc55ec322d96345f49 (diff) |
recognize async move
Diffstat (limited to 'crates/ra_parser/src/grammar/expressions')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions/atom.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs index a23977bfb..8653d4055 100644 --- a/crates/ra_parser/src/grammar/expressions/atom.rs +++ b/crates/ra_parser/src/grammar/expressions/atom.rs | |||
@@ -92,10 +92,10 @@ pub(super) fn atom_expr(p: &mut Parser, r: Restrictions) -> Option<(CompletedMar | |||
92 | } | 92 | } |
93 | } | 93 | } |
94 | } | 94 | } |
95 | 95 | ASYNC_KW if la == L_CURLY || la == MOVE_KW => { | |
96 | ASYNC_KW if la == L_CURLY => { | ||
97 | let m = p.start(); | 96 | let m = p.start(); |
98 | p.bump(); | 97 | p.bump(); |
98 | p.eat(MOVE_KW); | ||
99 | block_expr(p, Some(m)) | 99 | block_expr(p, Some(m)) |
100 | } | 100 | } |
101 | MATCH_KW => match_expr(p), | 101 | MATCH_KW => match_expr(p), |