Highlighting breaks after some certain loops, 