From 9415c7db1cd00b530f82f673efc32a459a4ae789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 1 Mar 2021 19:29:11 +0100 Subject: bugfix sectionizer --- src/compiler.rs | 1 - src/sectionizer.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler.rs b/src/compiler.rs index 5ae5bdb..295f5cf 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -1794,7 +1794,6 @@ impl<'a, 'b> Compiler { self.panic = false; } - block.debug_print(); self.blocks.insert(0, Rc::new(RefCell::new(block))); if self.errors.is_empty() { diff --git a/src/sectionizer.rs b/src/sectionizer.rs index 55f231e..c9cfcd5 100644 --- a/src/sectionizer.rs +++ b/src/sectionizer.rs @@ -54,7 +54,7 @@ pub fn sectionize(path: &Path) -> Vec
{ (Some((Token::LeftBrace, _)), ..) => { - let mut blocks = 0; + let mut blocks = 1; loop { curr += 1; match tokens.get(curr) { -- cgit v1.2.1