Fixed Luau branching at end of block

This commit is contained in:
Rerumu 2021-10-16 18:08:42 -04:00
parent b6297463a7
commit 2b2e5b4012

View File

@ -133,6 +133,8 @@ impl Edition for Luau {
} }
fn br_to_level(&self, level: usize, up: usize, is_loop: bool, w: Writer) -> Result<()> { fn br_to_level(&self, level: usize, up: usize, is_loop: bool, w: Writer) -> Result<()> {
writeln!(w, "do")?;
if up == 0 { if up == 0 {
if is_loop { if is_loop {
writeln!(w, "continue")?; writeln!(w, "continue")?;
@ -144,7 +146,7 @@ impl Edition for Luau {
writeln!(w, "break")?; writeln!(w, "break")?;
} }
Ok(()) writeln!(w, "end")
} }
fn i64(&self, i: i64) -> Infix<i64> { fn i64(&self, i: i64) -> Infix<i64> {