Bootstrapping implementation

This commit is contained in:
Maurus Decimus
2026-04-17 20:02:06 +02:00
parent c9b2c7c6f3
commit 95d1268308
100 changed files with 73102 additions and 1252 deletions

View File

@@ -126,12 +126,10 @@ impl GlobPattern {
continue;
}
}
Some(PatternChar::WildcardSingle { .. }) => {
if nx < value.len() {
px += 1;
nx += 1;
continue;
}
Some(PatternChar::WildcardSingle { .. }) if nx < value.len() => {
px += 1;
nx += 1;
continue;
}
Some(PatternChar::WildcardMany { .. }) => {
next_px = px;

View File

@@ -178,10 +178,8 @@ impl<T: FromStr + Eq + Hash + std::fmt::Debug> Template<T> {
TemplateItem::If {
variable,
block_end: start_pos,
} => {
if !entry.contains_key(variable) {
slice = self.items[*start_pos..*block_end].iter();
}
} if !entry.contains_key(variable) => {
slice = self.items[*start_pos..*block_end].iter();
}
_ => {}
}