aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-10-26 19:35:44 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-10-26 19:35:44 -0700
commit7550731c6eae194361e4da61ed25959bc651431b (patch)
tree268b2a3c16fd16fc421cdac2abd1fbe8e770b5e6
parent49ff523aad4d0373e9203698edc79f6fe0130935 (diff)
downloadccl-7550731c6eae194361e4da61ed25959bc651431b.tar.zst
Numbers must be separated from field names
Another technically backwards-incompatible change, but it's important to avoid weird edge cases in lexing.
-rw-r--r--asspb.go8
1 files changed, 8 insertions, 0 deletions
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