In the reference material for continue control structure posted at URL - http://arduino.cc/en/Reference/Continue
In the example given in it, the code should not be digitalWrite() but should be analogWrite() instead.
Correction: digitalWrite(PWMpin,x) => analogWrite(PWMpin,x)