reformat while loops for comment / whitespace skipping