Re: [protobuf] compound message allows colon

2011-02-22 Thread Kenton Varda
It's a "feature". This has always been allowed. No one really knows why. On Fri, Feb 18, 2011 at 9:53 AM, naderp wrote: > Hi, > > Given the following .proto definition: > > message person { > required string name = 1; > required int32 id = 2; > } > > I noticed the following message syntax

[protobuf] compound message allows colon

2011-02-18 Thread naderp
Hi, Given the following .proto definition: message person { required string name = 1; required int32 id = 2; } I noticed the following message syntax is valid: person: { name: "fred" id: 3 } i.e., the generated parser will quite happily accept a colon after the compound message nam