The following lines cannot run in a .spy file; they
result in "Spyce syntax error at test.spy:2-5 - EOF in
[[\ array1 = [0, 1, 2, 3, 4]
array2 = [0, 10, 20, 30, 40]
I believe that there are other variants of this that
give more obscure errors, but I can't recall for sure.
It seems like doing some bracket matching before
deciding to terminate the Python block would be called for.
This can be worked around by putting a space between
the two bracket characters or by breaking the statement
into multiple lines (using the "<%" "%>" block marking
syntax strangely doesn't help although you get
different errors depending on whether you you use the
"\" to indicate Python indentation - why are the "%>"
and "]]" tokens interchangable?).
Even worse, commenting out the offending "]]" line
(using "#") doesn't change the failure! Very
unintuitive, although I understand that there are
certain limitations given the choice of block markers.
And furthermore, "]]" or "%>" in pure HTML will cause
an error as well - this can't be right, can it? PHP
certainly doesn't mind unmatched "?>" tokens.
Sorry to cover so many issues at once - this seemed
like a pretty narrow problem when I started the report.