From 0183952d2e1252a030aca3dafd8d7abe093be3a2 Mon Sep 17 00:00:00 2001 From: Toby Dimmick Date: Thu, 6 Feb 2020 20:39:27 +0000 Subject: Closure params test --- crates/ra_parser/src/grammar/params.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_parser') diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs index 2445f71f7..d9fbc7c94 100644 --- a/crates/ra_parser/src/grammar/params.rs +++ b/crates/ra_parser/src/grammar/params.rs @@ -125,6 +125,10 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) { types::type_(p); } } + // test closure_params + // fn main() { + // let foo = |bar, baz: Baz, qux: Qux::Quux| (); + // } Flavor::Closure => { patterns::pattern(p); if p.at(T![:]) && !p.at(T![::]) { -- cgit v1.2.3