mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-19 13:36:32 +01:00
add _ wildcard for type definitions
and make line/file indicators in errors gray instead of fully white
This commit is contained in:
@@ -276,20 +276,28 @@ impl CheckError {
|
||||
if first_line_nr == last_line_nr {
|
||||
writeln!(
|
||||
f,
|
||||
"{}Line {first_line_nr} ({}..{}){}",
|
||||
indent!(true, false),
|
||||
start_with_comments + 1 - first_line_start,
|
||||
end_with_comments - last_line_start,
|
||||
src_from,
|
||||
"{}",
|
||||
format!(
|
||||
"{}Line {first_line_nr} ({}..{}){}",
|
||||
indent!(true, false),
|
||||
start_with_comments + 1 - first_line_start,
|
||||
end_with_comments - last_line_start,
|
||||
src_from,
|
||||
)
|
||||
.bright_black()
|
||||
)?;
|
||||
} else {
|
||||
writeln!(
|
||||
f,
|
||||
"{}Lines {first_line_nr}-{last_line_nr} ({}..{}){}",
|
||||
indent!(true, false),
|
||||
start_with_comments + 1 - first_line_start,
|
||||
end_with_comments - last_line_start,
|
||||
src_from,
|
||||
"{}",
|
||||
format!(
|
||||
"{}Lines {first_line_nr}-{last_line_nr} ({}..{}){}",
|
||||
indent!(true, false),
|
||||
start_with_comments + 1 - first_line_start,
|
||||
end_with_comments - last_line_start,
|
||||
src_from,
|
||||
)
|
||||
.bright_black()
|
||||
)?;
|
||||
}
|
||||
let lines = if cfg.show_comments {
|
||||
|
||||
Reference in New Issue
Block a user