Guest User

Untitled

a guest
Mar 13th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  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]}) {
Add Comment
Please, Sign In to add comment