python312Packages.comicon: 1.2.0 -> 1.2.1 (#361860)
[NixPkgs.git] / pkgs / development / perl-modules / Google-ProtocolBuffers-multiline-comments.patch
blob6b634d0d242470545d39b33accb7fd04cbc1eeb5
1 diff -Naur Google-ProtocolBuffers-0.08-orig/lib/Google/ProtocolBuffers/Compiler.pm Google-ProtocolBuffers-0.08/lib/Google/ProtocolBuffers/Compiler.pm
2 --- Google-ProtocolBuffers-0.08-orig/lib/Google/ProtocolBuffers/Compiler.pm 2008-10-23 13:46:01.000000000 -0400
3 +++ Google-ProtocolBuffers-0.08/lib/Google/ProtocolBuffers/Compiler.pm 2013-01-16 13:52:09.855063997 -0500
4 @@ -16,7 +16,7 @@
6 my $grammar = <<'END_OF_GRAMMAR';
8 -proto : <skip: qr! (?: //.*\n | \s+ )* !x>
9 +proto : <skip: qr! (?: //.*?\n | \s+ | /\*.*?\*/\s* )* !xs>
10 ## list of top level declarations.
11 ## Skip empty declarations and ";".
12 (message | extend | enum | import | package | option | service | syntax | ";")(s) /\Z/