mirror of
https://github.com/danog/parser.git
synced 2024-11-27 04:14:55 +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()?;
|
self.lbrace()?;
|
||||||
|
|
||||||
let mut body = Vec::new();
|
let mut body = Vec::new();
|
||||||
|
self.gather_comments();
|
||||||
while self.current.kind != TokenKind::RightBrace && ! self.is_eof() {
|
while self.current.kind != TokenKind::RightBrace && ! self.is_eof() {
|
||||||
body.push(self.class_statement()?);
|
body.push(self.class_statement()?);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user