v0.2.0 edit a document in place, comments kept; name the keys a struct does not take
Test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-24 20:45:44 -04:00
1 parent 18ae215998
commit e2712e32a2
6 files changed
+622 -11

No files matched your search

+6
View File
@@ -23,7 +23,13 @@ func NewLexer(input []byte) *Lexer {
func (l *Lexer) NextToken() Token {
l.skipWhitespace()
start := l.pos
t := l.next()
t.Pos, t.End = start, l.pos
return t
}
func (l *Lexer) next() Token {
if l.pos >= len(l.input) {
return l.newToken(TokenEOF, "")
}