The p8 file has unix end of line characters.
I created a lua file that I wanted to include and I was getting very weird syntax errors.
Then I remembered that Windows uses different end of line characters. When changing it to unix format it worked fine.
Trying to find the minimum code that triggered the error I found that it only fails when the { and } characters are on different lines.
Actually it also happens for parenthesis. If the parenthesis are more and two end of line chars apart they fail:
file that works:
print("hi!")
file that works:
print("hi!"
)
file that fails:
print("hi!"
)
converting the last file to Unix format works just fine.


Now remember, ximo, currently normal text files like written in NOTEPAD save 2-characters per line #13 and #10.
You need to use something like NOTEPAD++ to remove the #13 and save it back as it is currently not recognized in INCLUDE files in PICO.
I am understanding this error will be corrected in the next upcoming release.
[Please log in to post a comment]