This works:
s = [[ ... [ ... ]] x = 0 x += 1 |
But this no longer works:
s = [[ ... [[ ... ]] x = 0 x += 1 |
** syntax error line 3(tab 0) ** x += 1 ** syntax error near '+' |
It seems that in the search/replace phase of PICO-8 parsing, when "x += 1" gets replaced with "x = x + (1)", something erroneously considers that the second "[[" was opening a nested string, and does not perform any replacements until it finds a (nonexisting) matching "]]".
P#58567 2018-10-31 08:03 ( Edited 2018-11-02 19:14)
The PICO-8 parser accepts [[ abc [[ def ]] ghi ]] and treats it as two nested strings, but then the PICO-8 Lua interpreter treats it as an error and fails to run.
P#58660 2018-11-02 03:31 ( Edited 2018-11-02 07:31)
[Please log in to post a comment]