Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 291f7ff

Browse files
committed
Properly terminate tokenizer
1 parent 67f4bae commit 291f7ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func Init[T any](opts ...ParserOptions) *Parser[T] {
6767
// parseConfig(p)
6868
// return p.Finish()
6969
// }
70-
func (p *Parser[T]) Finish() (T, error) { return p.Value, p.errors }
70+
func (p *Parser[T]) Finish() (T, error) { p.stop(); return p.Value, p.errors }
7171

7272
// Errf triggers a panic mode with the given formatted error.
7373
// The position is correctly attached to the error.

0 commit comments

Comments
 (0)