From 58139c558aa085588264ba659b8483a036c1da0e Mon Sep 17 00:00:00 2001 From: csmoe Date: Fri, 4 Jan 2019 12:22:57 +0800 Subject: consume trivias for type/const def --- crates/ra_syntax/src/parser_impl/event.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ra_syntax/src/parser_impl/event.rs') 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>( kind: SyntaxKind, trivias: impl Iterator, ) -> usize { - // FIXME: parse attached trivias of CONST_DEF/TYPE_DEF match kind { - STRUCT_DEF | ENUM_DEF | FN_DEF | TRAIT_DEF | MODULE => { + CONST_DEF | TYPE_DEF | STRUCT_DEF | ENUM_DEF | FN_DEF | TRAIT_DEF | MODULE => { let mut res = 0; for (i, (kind, text)) in trivias.enumerate() { match kind { -- cgit v1.2.3