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.