aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar
diff options
context:
space:
mode:
authorDJMcNab <[email protected]>2018-12-20 15:50:42 +0000
committerDJMcNab <[email protected]>2018-12-20 15:50:42 +0000
commitf35151afed49d48eec8430864c5e348ff5a021e5 (patch)
treefa56994f9214df17911aab3e74bb1ac3f3573116 /crates/ra_syntax/src/grammar
parent84ff52390dc278aaed3ee148ddb971d1f5d77c7e (diff)
Don't require a command before EQ in a where clause
Diffstat (limited to 'crates/ra_syntax/src/grammar')
-rw-r--r--crates/ra_syntax/src/grammar/type_params.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar/type_params.rs b/crates/ra_syntax/src/grammar/type_params.rs
index f4c98675c..863f8e00c 100644
--- a/crates/ra_syntax/src/grammar/type_params.rs
+++ b/crates/ra_syntax/src/grammar/type_params.rs
@@ -108,7 +108,7 @@ pub(super) fn opt_where_clause(p: &mut Parser) {
108 break; 108 break;
109 } 109 }
110 where_predicate(p); 110 where_predicate(p);
111 if p.current() != L_CURLY && p.current() != SEMI { 111 if p.current() != L_CURLY && p.current() != SEMI && p.current() != EQ {
112 p.expect(COMMA); 112 p.expect(COMMA);
113 } 113 }
114 } 114 }