diff --git a/lexer.go b/lexer.go index 939b23b..b32f844 100644 --- a/lexer.go +++ b/lexer.go @@ -55,7 +55,20 @@ func (t *Token) Equals(other *Token) bool { // String formats the token in a human readable form. func (t *Token) String() string { - return fmt.Sprintf("%d %q %d (%d, %d)-(%d, %d)", t.Type, t.Value, t.TC, t.StartLine, t.StartColumn, t.EndLine, t.EndColumn) + return fmt.Sprintf( + "%d %q %d (%d, %d)-(%d, %d) (%d, %d)-(%d, %d)", + t.Type, + t.Value, + t.TC, + t.StartLine, + t.StartColumn, + t.EndLine, + t.EndColumn, + t.TSLine, + t.TSColumn, + t.TELine, + t.TEColumn, + ) } // An Action is a function which get called when the Scanner finds a match