From 7d8195e3c32ece209bb8617271b3d79c2f6acdff Mon Sep 17 00:00:00 2001 From: Steven McCanne Date: Fri, 25 Oct 2024 19:36:51 -0700 Subject: [PATCH] oops --- compiler/parser/api.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/compiler/parser/api.go b/compiler/parser/api.go index ac0e3d4f9e..93a3fd51dd 100644 --- a/compiler/parser/api.go +++ b/compiler/parser/api.go @@ -118,11 +118,7 @@ func (e *Error) Error() string { } func formatSpanError(b *strings.Builder, line string, start, end Position) { - // fmt.Println("SPAN ERR", start, end, "LINE", fmt.Sprintf("===%s===", line)) - pad := start.Column - 1 - if pad > 0 { - b.WriteString(strings.Repeat(" ", pad)) - } + b.WriteString(strings.Repeat(" ", start.Column-1)) n := end.Column - start.Column + 1 if start.Line != end.Line { n = len(line) - start.Column + 1