Hi @zep, found a parser bug for ya:
for --[[a]]e=0,1 do print(e) end print(fore) |
expected: 0 1 [nil] (this is what lua 5.4 outputs)
observed: [nil] 0
pico-8's highlighting works correctly, but the runtime seems to see this somehow:
fore=0,1 do print(e) end |
system: linux / pico8 0.2.5g
I ran into this while using shrinko8's annotations (for --[[preserve]]e=0,1 do
)
Workaround: add an extra space (for --[[preserve]] e=0,1 do
)
edit: ah! this thread has more cases / info: https://www.lexaloffle.com/bbs/?tid=51618
[Please log in to post a comment]