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 -5
View File
@@ -30,12 +30,13 @@ const (
TokenNewline // \n
)
// Token represents a lexical token
// Token represents a lexical token; Pos and End are its byte offsets in the input
type Token struct {
Type TokenType
Literal string
Line int
Col int
Type TokenType
Literal string
Line int
Col int
Pos, End int
}
func (t Token) String() string {