mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
parser: skip comments after a statement in block for now
This commit is contained in:
parent
92cc015d69
commit
490648514a
@ -12,6 +12,7 @@ impl Parser {
|
|||||||
|
|
||||||
while !self.is_eof() && &self.current.kind != until {
|
while !self.is_eof() && &self.current.kind != until {
|
||||||
block.push(self.statement()?);
|
block.push(self.statement()?);
|
||||||
|
self.skip_comments();
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(block)
|
Ok(block)
|
||||||
|
Loading…
Reference in New Issue
Block a user