Fix infinite loop when scanning
';'