Issue #562 invalid
Anonymous created an issue

Using "in" will result in an expected symbol error, placing it there will result in an unexpected symbol error. Also, using a "do" in a for loop will sometimes result in needing an "=" near the "do", placing it there will just reverse the error, saying there needs to be a "do" near the "=" sign. This goes on forever.

Comments (2)

  1. Boolsheet

    You may have written invalid Lua. The word in is a reserved keyword in Lua, you can't use it as a variable name. (markgo in #love on OFTC brought that up)

    The Lua errors usually tell you exactly what is wrong, but in some cases an error makes the parser think you want to do something different and the message changes.

    Submit example code to resolve such issues immediately.

  2. Log in to comment