diff options
-rw-r--r-- | crates/ra_syntax/src/parser_impl/event.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parser_impl/event.rs b/crates/ra_syntax/src/parser_impl/event.rs index 835b2c78d..73dd6e02b 100644 --- a/crates/ra_syntax/src/parser_impl/event.rs +++ b/crates/ra_syntax/src/parser_impl/event.rs | |||
@@ -248,9 +248,8 @@ fn n_attached_trivias<'a>( | |||
248 | kind: SyntaxKind, | 248 | kind: SyntaxKind, |
249 | trivias: impl Iterator<Item = (SyntaxKind, &'a str)>, | 249 | trivias: impl Iterator<Item = (SyntaxKind, &'a str)>, |
250 | ) -> usize { | 250 | ) -> usize { |
251 | // FIXME: parse attached trivias of CONST_DEF/TYPE_DEF | ||
252 | match kind { | 251 | match kind { |
253 | STRUCT_DEF | ENUM_DEF | FN_DEF | TRAIT_DEF | MODULE => { | 252 | CONST_DEF | TYPE_DEF | STRUCT_DEF | ENUM_DEF | FN_DEF | TRAIT_DEF | MODULE => { |
254 | let mut res = 0; | 253 | let mut res = 0; |
255 | for (i, (kind, text)) in trivias.enumerate() { | 254 | for (i, (kind, text)) in trivias.enumerate() { |
256 | match kind { | 255 | match kind { |