mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +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 {
|
||||
block.push(self.statement()?);
|
||||
self.skip_comments();
|
||||
}
|
||||
|
||||
Ok(block)
|
||||
|
Loading…
Reference in New Issue
Block a user