mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
parser: bodge comments by skipping them in classes
This commit is contained in:
parent
5e6f976f29
commit
626af3e31c
@ -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()?);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user