aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-01 19:29:11 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-01 19:29:11 +0100
commit9415c7db1cd00b530f82f673efc32a459a4ae789 (patch)
tree7b1509490837c0dac30f58bd1472d5bbdd647139 /src
parent1254dc1cf955d3c310a24e3330a92cc318931654 (diff)
downloadsylt-9415c7db1cd00b530f82f673efc32a459a4ae789.tar.gz
bugfix sectionizer
Diffstat (limited to 'src')
-rw-r--r--src/compiler.rs1
-rw-r--r--src/sectionizer.rs2
2 files changed, 1 insertions, 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<Section> {
(Some((Token::LeftBrace, _)), ..)
=> {
- let mut blocks = 0;
+ let mut blocks = 1;
loop {
curr += 1;
match tokens.get(curr) {