Get occurrences for loops with 'break'/'continue' statements

The general pattern is to always ensure that the token is not part of a "stray" parse, so that we can be resilient.