From 490648514a81d25ee5eb72bd32c13b6c011ba766 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Wed, 30 Nov 2022 00:56:56 +0000 Subject: [PATCH] parser: skip comments after a statement in block for now --- src/parser/block.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/block.rs b/src/parser/block.rs index e6f7b4e..ca9654c 100644 --- a/src/parser/block.rs +++ b/src/parser/block.rs @@ -12,6 +12,7 @@ impl Parser { while !self.is_eof() && &self.current.kind != until { block.push(self.statement()?); + self.skip_comments(); } Ok(block)