diff options
author | Erlend Tobiassen <[email protected]> | 2019-01-22 17:33:53 +0000 |
---|---|---|
committer | Erlend Tobiassen <[email protected]> | 2019-01-22 17:33:53 +0000 |
commit | 234b65fd6155e14f260765aff0fd8c6f7f9e4169 (patch) | |
tree | 143f6616cc39548e112a31c63f2a24d32956bd68 /crates/ra_syntax | |
parent | 595a2f9900d052d0c5cc3529602aec0cbcd52614 (diff) |
Allow placeholder parameters in trait fn defs
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/grammar/params.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar/params.rs b/crates/ra_syntax/src/grammar/params.rs index 658fc5820..130660740 100644 --- a/crates/ra_syntax/src/grammar/params.rs +++ b/crates/ra_syntax/src/grammar/params.rs | |||
@@ -79,7 +79,7 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) { | |||
79 | let la1 = p.nth(1); | 79 | let la1 = p.nth(1); |
80 | let la2 = p.nth(2); | 80 | let la2 = p.nth(2); |
81 | let la3 = p.nth(3); | 81 | let la3 = p.nth(3); |
82 | if la0 == IDENT && la1 == COLON | 82 | if (la0 == IDENT || la0 == UNDERSCORE) && la1 == COLON |
83 | || la0 == AMP && la1 == IDENT && la2 == COLON | 83 | || la0 == AMP && la1 == IDENT && la2 == COLON |
84 | || la0 == AMP && la1 == MUT_KW && la2 == IDENT && la3 == COLON | 84 | || la0 == AMP && la1 == MUT_KW && la2 == IDENT && la3 == COLON |
85 | { | 85 | { |