Fix issue with repeating {{ else }} blocks
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
462355b6f2
commit
b0620a00d5
3 changed files with 63 additions and 28 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
{{ if t }}
|
||||
{{else}}{{ else }}
|
||||
{{end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue