From f0d7741e669c5362ae94179bdc649e5a09da753d Mon Sep 17 00:00:00 2001 From: Jonas Wanke Date: Thu, 21 Mar 2024 17:44:48 +0100 Subject: [PATCH] Improve CST's RichIr formatting --- compiler/frontend/src/cst/kind.rs | 2 +- compiler/frontend/src/cst/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/frontend/src/cst/kind.rs b/compiler/frontend/src/cst/kind.rs index a4a2f3d41..f37f57630 100644 --- a/compiler/frontend/src/cst/kind.rs +++ b/compiler/frontend/src/cst/kind.rs @@ -997,7 +997,7 @@ impl RichIrBuilder { } fn push_cst_kind_property(&mut self, property_name: &str, value: impl ToRichIr) { self.push_newline(); - self.push_simple(format!("{property_name}:")); + self.push_simple(format!("{property_name}: ")); value.build_rich_ir(self); } } diff --git a/compiler/frontend/src/cst/mod.rs b/compiler/frontend/src/cst/mod.rs index 276b62bd9..69cb42986 100644 --- a/compiler/frontend/src/cst/mod.rs +++ b/compiler/frontend/src/cst/mod.rs @@ -63,7 +63,7 @@ impl ToRichIr for Cst { " at {}..{}", *self.data.span.start, *self.data.span.end )); - builder.push_simple(": "); + builder.push_simple(" of kind "); self.kind.build_rich_ir(builder); } }