It's a "feature". This has always been allowed. No one really knows why.
On Fri, Feb 18, 2011 at 9:53 AM, naderp <paul.na...@gmail.com> wrote: > 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 name (person: in this case). > > Is this a bug or a "feature"? > > Cheers > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to protobuf@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.