compiler: remove space at the end of warn/error messages to minimize diff churn
parent
b5de19dc03
commit
81f8e910e6
|
@ -1,6 +1,6 @@
|
||||||
println(a)
|
println(a)
|
||||||
===output===
|
===output===
|
||||||
.vrepl.v:7:9: error: undefined ident: `a`
|
.vrepl.v:7:9: error: undefined ident: `a`
|
||||||
5 | import math
|
5 | import math
|
||||||
6 |
|
6 |
|
||||||
7 | println(a)
|
7 | println(a)
|
||||||
|
|
|
@ -98,7 +98,7 @@ pub fn formatted_error(kind, omsg, filepath string, pos token.Position) string {
|
||||||
final_msg := emsg
|
final_msg := emsg
|
||||||
final_context := if scontext.len > 0 { '\n$scontext' } else { '' }
|
final_context := if scontext.len > 0 { '\n$scontext' } else { '' }
|
||||||
//
|
//
|
||||||
return '$final_position $final_kind $final_msg $final_context'.trim_space()
|
return '$final_position $final_kind $final_msg$final_context'.trim_space()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn source_context(kind, source string, column int, pos token.Position) []string {
|
pub fn source_context(kind, source string, column int, pos token.Position) []string {
|
||||||
|
|
Loading…
Reference in New Issue