Multiline comments seem to fail to be comments
Posted: Sat Dec 12, 2015 12:53 pm
I've been having a strange time with multiline comments using esplorer to send code to my ESP8266. I commented out a block of code with --[ and --] before and after the code. Testing showed the missing code didn't affect the operation. Until a bit later and then the code failed. I put the code back in and it worked again.
So then I commented out the code line by line with double dash: -- and now the code failed right away. Removing the comment symbols restored it. So although the --[ and --] made the code go green italicized like a comment, it was still getting run.
I don't know if it's something in how esplorer sends the code or if the ESP8266 Lua interpreter mis-handles it.
So then I commented out the code line by line with double dash: -- and now the code failed right away. Removing the comment symbols restored it. So although the --[ and --] made the code go green italicized like a comment, it was still getting run.
I don't know if it's something in how esplorer sends the code or if the ESP8266 Lua interpreter mis-handles it.