Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mccanne committed Oct 26, 2024
1 parent 1be8ba3 commit 7d8195e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compiler/parser/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d8195e

Please sign in to comment.