daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: std_hilite/STD_syntax_highlight
  2. ===================================================================
  3. --- std_hilite/STD_syntax_highlight (revision 28640)
  4. +++ std_hilite/STD_syntax_highlight (working copy)
  5. @@ -447,6 +447,14 @@
  6.      my ($last_tree,$buffer, $last_type) = ("","","");
  7.      for my $i (0 .. @loc-1) {
  8.          next unless defined $loc[$i];
  9. +
  10. +        # XXX Bug? @loc is too long for $src_text.
  11. +        # Extra @loc[-2,-1] are 'vws' and 'eat_terminator'.
  12. +        if ( $i >= length $src_text ) {
  13. +            #warn "\$i was $i, which is past the end of \$src_text\n";
  14. +            next;
  15. +        }
  16. +
  17.          my $c = substr($src_text,$i,1);
  18.          my $tree = "";
  19.          for my $action_ref (@{$loc[$i]}) {
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top