#4812
Vlad
Member

This is a new bug only in version 7.
My actual script, which was ok with version 6, looks like this:

#language="Python"
if 0:
pass
else:
Window.alert('ok')


It has windows line endings and ends with 3 newlines

Now this gives error message:
invalid syntax
Line 8

Line 8 is the end of file. Remove the last line and it runs fine. Other variations of the number of trailing line endings and indents give errors similar to the first post. This is quite mysterious.