In theory that should work. In practice the Java parser may have a bug. Feel free to submit a patch fixing it. (I believe the C++ parser does support this style.)
On Fri, Oct 30, 2009 at 11:35 AM, alopecoid <[email protected]> wrote: > > Hi, > > Using the Java API, when attempting to parse a text-formatted protobuf > message that contains adjacent strings that are meant to be > concatenated, such as in the following contrived example: > > name:"John Smith" > profession:"mailman" > description: > "all these strings " > "are concatenated to form " > "a single very long description" > > The following exception is thrown: > Exception in thread "main" com.google.protobuf.TextFormat > $ParseException: 3:5: Expected identifier. > at com.google.protobuf.TextFormat$Tokenizer.parseException > (TextFormat.java:698) > at com.google.protobuf.TextFormat$Tokenizer.consumeIdentifier > (TextFormat.java:525) > at com.google.protobuf.TextFormat.mergeField(TextFormat.java: > 851) > at com.google.protobuf.TextFormat.merge(TextFormat.java:811) > at com.google.protobuf.TextFormat.merge(TextFormat.java:757) > > Is this not meant to be supported? > > Thank you. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---
