From f35151afed49d48eec8430864c5e348ff5a021e5 Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Thu, 20 Dec 2018 15:50:42 +0000 Subject: Don't require a command before EQ in a where clause --- crates/ra_syntax/src/grammar/type_params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src') 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) { break; } where_predicate(p); - if p.current() != L_CURLY && p.current() != SEMI { + if p.current() != L_CURLY && p.current() != SEMI && p.current() != EQ { p.expect(COMMA); } } -- cgit v1.2.3