perl-528-fixes 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. >From 1f27900352e04ff4f19bec1c1e9635adad2be31c Mon Sep 17 00:00:00 2001
  2. From: Niko Tyni <ntyni@debian.org>
  3. Date: Fri, 18 May 2018 10:40:00 +0100
  4. Subject: [PATCH] Fix unescaped left braces in regexps, deprecated since Perl
  5. 5.27.8
  6. This fixes test failures on recent Perl versions.
  7. ---
  8. tp/Texinfo/Parser.pm | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/tp/Texinfo/Parser.pm b/tp/Texinfo/Parser.pm
  11. index dc32ca2..c577aa9 100644
  12. --- a/tp/Texinfo/Parser.pm
  13. +++ b/tp/Texinfo/Parser.pm
  14. @@ -5478,11 +5478,11 @@ sub _parse_special_misc_command($$$$)
  15. }
  16. } elsif ($command eq 'clickstyle') {
  17. # REMACRO
  18. - if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*/) {
  19. + if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)(\{\})?\s*/) {
  20. $args = ['@'.$1];
  21. $self->{'clickstyle'} = $1;
  22. $remaining = $line;
  23. - $remaining =~ s/^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
  24. + $remaining =~ s/^\s+@([[:alnum:]][[:alnum:]\-]*)(\{\})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
  25. $has_comment = 1 if (defined($4));
  26. } else {
  27. $self->line_error (sprintf($self->__(
  28. --
  29. 2.17.0