Fix issue with repeating {{ else }} blocks

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-09 16:02:55 +01:00
parent 462355b6f2
commit b0620a00d5
3 changed files with 63 additions and 28 deletions

View file

@ -5,9 +5,13 @@ fn check_files() {
for file in files {
let input = std::fs::read_to_string(file.unwrap().path()).unwrap();
let parsed = nomo::parser::parse(input.into()).unwrap();
let Ok(parsed) = nomo::parser::parse(input.into()) else {
continue;
};
let ast = nomo::ast::parse(parsed.tokens()).unwrap();
let Ok(ast) = nomo::ast::parse(parsed.tokens()) else {
continue;
};
let _emit = nomo::emit::emit_machine(ast);
}