diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-01 19:29:11 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-01 19:29:11 +0100 |
| commit | 9415c7db1cd00b530f82f673efc32a459a4ae789 (patch) | |
| tree | 7b1509490837c0dac30f58bd1472d5bbdd647139 /src/sectionizer.rs | |
| parent | 1254dc1cf955d3c310a24e3330a92cc318931654 (diff) | |
| download | sylt-9415c7db1cd00b530f82f673efc32a459a4ae789.tar.gz | |
bugfix sectionizer
Diffstat (limited to 'src/sectionizer.rs')
| -rw-r--r-- | src/sectionizer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
