aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar')
-rw-r--r--crates/libsyntax2/src/grammar/expressions/atom.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/atom.rs b/crates/libsyntax2/src/grammar/expressions/atom.rs
index 2536bac80..1488e12a4 100644
--- a/crates/libsyntax2/src/grammar/expressions/atom.rs
+++ b/crates/libsyntax2/src/grammar/expressions/atom.rs
@@ -108,6 +108,10 @@ fn tuple_expr(p: &mut Parser) -> CompletedMarker {
108 let mut saw_expr = false; 108 let mut saw_expr = false;
109 while !p.at(EOF) && !p.at(R_PAREN) { 109 while !p.at(EOF) && !p.at(R_PAREN) {
110 saw_expr = true; 110 saw_expr = true;
111 if !EXPR_FIRST.contains(p.current()) {
112 p.error("expected expression");
113 break;
114 }
111 expr(p); 115 expr(p);
112 if !p.at(R_PAREN) { 116 if !p.at(R_PAREN) {
113 saw_comma = true; 117 saw_comma = true;