diff --git a/README.md b/README.md index d9c29de4c..4fc5656c8 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,8 @@ Ace or Monaco. Codespan is used in the following projects: - [Gluon](https://github.com/gluon-lang/gluon) -- [Pikelet](https://github.com/brendanzab/pikelet) +- [Pikelet](https://github.com/pikelet-lang/pikelet) +- [Gleam](https://github.com/lpil/gleam/) ## Acknowledgments diff --git a/codespan-reporting/src/emitter.rs b/codespan-reporting/src/emitter.rs index 1da421ec5..9ef9791e3 100644 --- a/codespan-reporting/src/emitter.rs +++ b/codespan-reporting/src/emitter.rs @@ -89,6 +89,7 @@ where // writer.set_color(&line_location_color)?; let line_string = start_line.number().to_string(); + writeln!(writer, "{} |", Pad(' ', line_location_width))?; write!(writer, "{} | ", line_string)?; let prefix = file @@ -159,7 +160,7 @@ where writer.reset()?; writer.set_color(&label_color)?; - write!(writer, "{}{}", Pad(' ', prefix.len()), Pad(mark, mark_len),)?; + write!(writer, "{}{}", Pad(' ', prefix.len()), Pad(mark, mark_len))?; writer.reset()?; if label.message.is_none() { @@ -175,6 +176,9 @@ where writer.reset()?; } } + writer.set_color(&line_location_color)?; + writeln!(writer, "{} |", Pad(' ', line_location_width))?; + writer.reset()?; } } }