aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar/params.rs
diff options
context:
space:
mode:
authorEvgenii P <[email protected]>2019-08-07 18:36:19 +0100
committerEvgenii P <[email protected]>2019-08-07 18:36:19 +0100
commit79d4202194ebeb080b1ae283c56a1697aa4a6fcc (patch)
tree0d341fe17d42676df0e86c2b18fc15a886bb8b77 /crates/ra_parser/src/grammar/params.rs
parent9ea36703d27a850976190f870fa7c6cb086028c7 (diff)
Fix parser to correctly consume outer attrs before ellipsis param
Diffstat (limited to 'crates/ra_parser/src/grammar/params.rs')
-rw-r--r--crates/ra_parser/src/grammar/params.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs
index c9c2da379..34c584c79 100644
--- a/crates/ra_parser/src/grammar/params.rs
+++ b/crates/ra_parser/src/grammar/params.rs
@@ -50,6 +50,10 @@ fn list_(p: &mut Parser, flavor: Flavor) {
50 while !p.at(EOF) && !p.at(ket) && !(flavor.type_required() && p.at(T![...])) { 50 while !p.at(EOF) && !p.at(ket) && !(flavor.type_required() && p.at(T![...])) {
51 attributes::outer_attributes(p); 51 attributes::outer_attributes(p);
52 52
53 if p.at(T![...]) {
54 break;
55 }
56
53 if !p.at_ts(VALUE_PARAMETER_FIRST) { 57 if !p.at_ts(VALUE_PARAMETER_FIRST) {
54 p.error("expected value parameter"); 58 p.error("expected value parameter");
55 break; 59 break;