Jérôme M. Berger wrote:
Of course, using a decent editor will prevent it: if the editor is able to handle indentation correctly, it will indent the writeln in the same column as the for which makes the problem appear immediately.
I think it is a serious mistake to design a language that requires a syntax-aware editor.