From ab1adb19a013e340830aa6e44b6b5d16e8328333 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Wed, 10 Aug 2022 00:37:24 +0100 Subject: [PATCH] parser: skip more comments... --- trunk_parser/src/parser/block.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk_parser/src/parser/block.rs b/trunk_parser/src/parser/block.rs index 133a890..6be36e8 100644 --- a/trunk_parser/src/parser/block.rs +++ b/trunk_parser/src/parser/block.rs @@ -6,6 +6,8 @@ use super::{Parser, ParseResult}; impl Parser { pub(crate) fn block(&mut self, until: &TokenKind) -> ParseResult { + self.skip_comments(); + let mut block = Block::new(); while ! self.is_eof() && &self.current.kind != until {