parser: bodge comments by skipping them in classes

This commit is contained in:
Ryan Chandler 2022-08-09 11:50:35 +01:00
parent 5e6f976f29
commit 626af3e31c
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -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()?);
}