aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/grammar')
-rw-r--r--crates/ra_syntax/src/grammar/expressions.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar/expressions.rs b/crates/ra_syntax/src/grammar/expressions.rs
index 1608b1a73..67fc17667 100644
--- a/crates/ra_syntax/src/grammar/expressions.rs
+++ b/crates/ra_syntax/src/grammar/expressions.rs
@@ -42,6 +42,11 @@ pub(crate) fn block(p: &mut Parser) {
42 } 42 }
43 let m = p.start(); 43 let m = p.start();
44 p.bump(); 44 p.bump();
45 // test nocontentexpr
46 // fn foo(){
47 // ;;;some_expr();;;;{;;;};;;;Ok(())
48 // }
49 while p.eat(SEMI) {}
45 while !p.at(EOF) && !p.at(R_CURLY) { 50 while !p.at(EOF) && !p.at(R_CURLY) {
46 match p.current() { 51 match p.current() {
47 LET_KW => let_stmt(p), 52 LET_KW => let_stmt(p),
@@ -89,6 +94,7 @@ pub(crate) fn block(p: &mut Parser) {
89 } 94 }
90 } 95 }
91 } 96 }
97 while p.eat(SEMI) {}
92 } 98 }
93 p.expect(R_CURLY); 99 p.expect(R_CURLY);
94 m.complete(p, BLOCK); 100 m.complete(p, BLOCK);