v0.1.3 bound parse memory and errors, conform better to toml spec for escpae and control chars
Test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-03 23:14:11 -04:00
1 parent cede215365
commit 18ae215998
8 files changed
+283 -40

No files matched your search

+3 -1
View File
@@ -46,9 +46,11 @@ func (t Token) String() string {
return fmt.Sprintf("Error(%s)", t.Literal)
case TokenNewline:
return "Newline"
case TokenString:
return "string" // its content may be a secret, as in a credentials file
}
if len(t.Literal) > 20 {
return fmt.Sprintf("%q...", t.Literal[:20])
}
return fmt.Sprintf("%q", t.Literal)
}
}