diff --git a/trunk_parser/src/parser/mod.rs b/trunk_parser/src/parser/mod.rs index 8312ccc..0f67a48 100644 --- a/trunk_parser/src/parser/mod.rs +++ b/trunk_parser/src/parser/mod.rs @@ -782,6 +782,7 @@ impl Parser { self.lbrace()?; let mut body = Vec::new(); + self.gather_comments(); while self.current.kind != TokenKind::RightBrace && ! self.is_eof() { body.push(self.class_statement()?); }