You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, indeed fori = 1, 3 is valid Lua, but the 3do part is not. Lua itself complains about it being a malformed number. glualint is fine lexing it as the number 3 followed by the keyword do.
I think the difference is in that Lua number parsing works like "parse a number followed by a bunch of letters, then check later if those letters make sense". Glualint parses numbers as the very precise set of characters in the order that they are allowed.
Linter allows this:
It's kinda weird, but the problem is probably not with the for loop, but with
3do end
EDIT:
yep the problem is with "3do end" as formatter formats it into:
The text was updated successfully, but these errors were encountered: