Here are some additional info, and an attached pl file, which could be
used as a start for some unit tests.
Google-ProtocolBuffers-0.08 from CPAN
perl -v:
This is perl 5, version 14, subversion 2 (v5.14.2) built for
x86_64-linux-gnu-thread-multi
(with 55 registered patches, see perl -V for more detail)
uname-a:
Linux qew 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux
Cheers,
Daniel
On 01/15/2013 06:36 PM, Bugs in Google-ProtocolBuffers via RT wrote:
Show quoted text>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "Parsing proto files with /* .. */ style comments",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [rt.cpan.org #82734]. Your ticket is accessible
> on the web at:
>
>
https://rt.cpan.org/Ticket/Display.html?id=82734
>
> Please include the string:
>
> [rt.cpan.org #82734]
>
> in the subject line of all future correspondence about this issue. To do so,
> you may reply to this message.
>
> Thank you,
> bug-Google-ProtocolBuffers@rt.cpan.org
>
> -------------------------------------------------------------------------
> Hi,
>
> Thank you for putting together such a great perl library! Protocol
> buffers in my favorite language are great!
>
> The parser gets upset when the proto definition contains /* .. */ style
> comments. Comments of this style are supported by the google protoc
> tool, so it would be great if the Perl-parser would be fine with them, too.
>
> It seems like the following change to Compiler.pl would do the trick:
>
> diff lib/Google/ProtocolBuffers/Compiler.pm.orig
> lib/Google/ProtocolBuffers/Compiler.pm
> 19c19
> < proto : <skip: qr! (?: //.*\n | \s+ )* !x>
> ---
>> proto : <skip: qr! (?: //.*\n | \s+ | /\*.*?\*/ )* !x>
>
> Cheers,
> Daniel
>