parser: skip comments after a statement in block for now

This commit is contained in:
Ryan Chandler 2022-11-30 00:56:56 +00:00
parent 92cc015d69
commit 490648514a
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -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)