aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar/expressions
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-02-17 17:48:08 +0000
committerVille Penttinen <[email protected]>2019-02-17 17:48:08 +0000
commit96e3ac389fbc3709cc6e7e8dbe25619daeb61f4b (patch)
treef92e14c1d9c09b8d1bc00d9135f43d3a6af4d7c1 /crates/ra_syntax/src/grammar/expressions
parent1c97c1ac11459d45f7bfc57dc72428d2b294520c (diff)
Parse only outer_attributes for match arms for now
Diffstat (limited to 'crates/ra_syntax/src/grammar/expressions')
-rw-r--r--crates/ra_syntax/src/grammar/expressions/atom.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/grammar/expressions/atom.rs b/crates/ra_syntax/src/grammar/expressions/atom.rs
index 67cd7e6b0..e74305b6a 100644
--- a/crates/ra_syntax/src/grammar/expressions/atom.rs
+++ b/crates/ra_syntax/src/grammar/expressions/atom.rs
@@ -331,11 +331,6 @@ pub(crate) fn match_arm_list(p: &mut Parser) {
331 continue; 331 continue;
332 } 332 }
333 333
334 // This may result in invalid attributes
335 // if there are inner attributes mixed in together
336 // with the outer attributes, but we allow parsing
337 // those so we can run validation and report better errors
338
339 // test match_arms_outer_attributes 334 // test match_arms_outer_attributes
340 // fn foo() { 335 // fn foo() {
341 // match () { 336 // match () {
@@ -349,7 +344,7 @@ pub(crate) fn match_arm_list(p: &mut Parser) {
349 // _ => (), 344 // _ => (),
350 // } 345 // }
351 // } 346 // }
352 attributes::all_attributes(p); 347 attributes::outer_attributes(p);
353 348
354 // test match_arms_commas 349 // test match_arms_commas
355 // fn foo() { 350 // fn foo() {