From eca2cda3d56a9ed90c068034f35ae87e1eb3aaa8 Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Mon, 3 Jul 2023 11:16:34 +1000 Subject: [PATCH] Use half indentation for labels --- valuescript_compiler/src/asm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/valuescript_compiler/src/asm.rs b/valuescript_compiler/src/asm.rs index 0441d64..d7579be 100644 --- a/valuescript_compiler/src/asm.rs +++ b/valuescript_compiler/src/asm.rs @@ -142,7 +142,7 @@ impl std::fmt::Display for Function { for fn_line in &self.body { match fn_line { FnLine::Instruction(instruction) => write!(f, " {}\n", instruction)?, - FnLine::Label(label) => write!(f, "{}\n", label)?, + FnLine::Label(label) => write!(f, " {}\n", label)?, FnLine::Empty => write!(f, "\n")?, FnLine::Comment(message) => write!(f, " // {}\n", message)?, FnLine::Release(reg) => write!(f, " (release {})\n", reg)?, @@ -504,7 +504,7 @@ impl std::fmt::Display for Lazy { for fn_line in &self.body { match fn_line { FnLine::Instruction(instruction) => write!(f, " {}\n", instruction)?, - FnLine::Label(label) => write!(f, "{}\n", label)?, + FnLine::Label(label) => write!(f, " {}\n", label)?, FnLine::Empty => write!(f, "\n")?, FnLine::Comment(message) => write!(f, " // {}\n", message)?, FnLine::Release(reg) => write!(f, " (release {})\n", reg)?,