Add support for repeated fields expressed using list notation, like ["a", "b", "c"].
This matches the C++ parser.
Signed-off-by: David Symonds <dsymonds@golang.org>
diff --git a/proto/text_parser_test.go b/proto/text_parser_test.go
index a2a9604..d02c61d 100644
--- a/proto/text_parser_test.go
+++ b/proto/text_parser_test.go
@@ -256,6 +256,15 @@
},
},
+ // Repeated field with list notation
+ {
+ in: `count:42 pet: ["horsey", "bunny"]`,
+ out: &MyMessage{
+ Count: Int32(42),
+ Pet: []string{"horsey", "bunny"},
+ },
+ },
+
// Repeated message with/without colon and <>/{}
{
in: `count:42 others:{} others{} others:<> others:{}`,