aboutsummaryrefslogtreecommitdiffstats
path: root/src/sectionizer.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-05 20:12:39 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-05 20:12:39 +0100
commitdd38069bc1f8b696e8f0c50f43e0e7954729acf7 (patch)
treeae7b0262aa7a3a4aaf9abf72738f116fdc61487e /src/sectionizer.rs
parent57f02d45b7e6ec65c3f2055a2cc4b2c2737167d4 (diff)
downloadsylt-dd38069bc1f8b696e8f0c50f43e0e7954729acf7.tar.gz
better errors on invalid outer tokens
Diffstat (limited to 'src/sectionizer.rs')
-rw-r--r--src/sectionizer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sectionizer.rs b/src/sectionizer.rs
index c9cfcd5..8c5e238 100644
--- a/src/sectionizer.rs
+++ b/src/sectionizer.rs
@@ -6,6 +6,7 @@ use std::path::{Path, PathBuf};
pub struct Section {
pub tokens: Vec<PlacedToken>,
pub path: PathBuf,
+ pub faulty: bool,
}
impl Section {
@@ -13,6 +14,7 @@ impl Section {
Self {
tokens: Vec::from(tokens),
path,
+ faulty: false,
}
}
}