From 7550731c6eae194361e4da61ed25959bc651431b Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sun, 26 Oct 2025 19:35:44 -0700 Subject: Numbers must be separated from field names Another technically backwards-incompatible change, but it's important to avoid weird edge cases in lexing. --- asspb.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'asspb.go') diff --git a/asspb.go b/asspb.go index c649edd..33b3446 100644 --- a/asspb.go +++ b/asspb.go @@ -31,6 +31,14 @@ // Leading zeros are not permitted in decimal numbers, due to potential // confusion with octal (which is not supported). // +// As a lexical matter, numbers must be separated from subsequent field names by +// intervening whitespace or comments: +// +// # invalid +// field1:10field2:20 +// # ok +// field1:10 field2:20 +// // # Strings // // Strings are written with " or ' and any sequence of intermediate bytes (with -- cgit v1.3.1