parser: skip more comments...

This commit is contained in:
Ryan Chandler 2022-08-10 00:37:24 +01:00
parent d97e23db94
commit ab1adb19a0
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -6,6 +6,8 @@ use super::{Parser, ParseResult};
impl Parser {
pub(crate) fn block(&mut self, until: &TokenKind) -> ParseResult<Block> {
self.skip_comments();
let mut block = Block::new();
while ! self.is_eof() && &self.current.kind != until {