Skip to content

Commit eb342b0

Browse files
committed
Updated tokenizer
1 parent 830f1f1 commit eb342b0

File tree

6 files changed

+861
-217
lines changed

6 files changed

+861
-217
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/mutablelogic/go-tokenizer
22

3-
go 1.25.4
3+
go 1.23

pos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewPosError(err error, pos Pos) error {
3333
}
3434

3535
func NewParseError(t *Token) error {
36-
return &PosError{Err: ErrBadParameter.Withf("Parse error near %q", t.toString()), Pos: t.Pos}
36+
return &PosError{Err: ErrBadParameter.Withf("Parse error near %q", t.Val), Pos: t.Pos}
3737
}
3838

3939
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)