From 009e1fa176dd06d2c7dace8646e4f8d657d923bf Mon Sep 17 00:00:00 2001 From: Chad Stearns Date: Sun, 15 Mar 2020 20:57:32 -0400 Subject: [PATCH] Small changes to region rendering --- compiler/reporting/src/report.rs | 4 ++-- compiler/reporting/tests/test_reporting.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/reporting/src/report.rs b/compiler/reporting/src/report.rs index e264ed9aff..2a42234b7e 100644 --- a/compiler/reporting/src/report.rs +++ b/compiler/reporting/src/report.rs @@ -116,12 +116,12 @@ impl ReportText { Region(region) => { for i in region.start_line..=region.end_line { buf.push_str(i.to_string().as_str()); - buf.push_str(" |"); + buf.push_str(" ┆"); let line = src_lines[i as usize]; if !line.is_empty() { - buf.push(' '); + buf.push_str(" "); buf.push_str(src_lines[i as usize]); } diff --git a/compiler/reporting/tests/test_reporting.rs b/compiler/reporting/tests/test_reporting.rs index 12d5f8bbb5..de8311bf1a 100644 --- a/compiler/reporting/tests/test_reporting.rs +++ b/compiler/reporting/tests/test_reporting.rs @@ -218,7 +218,7 @@ mod test_report { r#" x = 1 y = 2 - f = \a -> a + 4 + f = \a -> a + 4 f x "# @@ -231,9 +231,9 @@ mod test_report { })), indoc!( r#" - 1 | y = 2 - 2 | f = \a -> a + 4 - 3 |"# + 1 ┆ y = 2 + 2 ┆ f = \a -> a + 4 + 3 ┆"# ), ); }