From c1549bbc6dc953e5fa87a1053863bc4983fb6d7b Mon Sep 17 00:00:00 2001 From: Greg Date: Sat, 2 Nov 2024 18:23:58 +0200 Subject: [PATCH] fmt --- parser.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parser.go b/parser.go index 3ff5eb5..5a093eb 100644 --- a/parser.go +++ b/parser.go @@ -17,7 +17,12 @@ type ParseError struct { } func (pe *ParseError) Error() string { - return fmt.Sprintf("ParseError [%d][%s]: %s", pe.token.line, pe.token.typ, pe.message) + return fmt.Sprintf( + "ParseError [%d][%s]: %s", + pe.token.line, + pe.token.typ, + pe.message, + ) } func newParser(tokens []Token) *Parser {