Funny, didn't show up yesternight nor while BC-ing it. Can't reproduce it today, too. (is it the REM ?)
What's your configuration ?
It works fine on my 6128 and on WinAPE running BASIC1.1 (6128, 464+, 6128+)
WinAPE 2.0 B2, CPC464 with ParaDOS (I think the clue could be with BASIC1.0) fails with the SYNTAX ERROR, and yes, it's the REM statement.