|
f()(g or h)()is naturally read as 2 statements, though given Lua's grammar it should be parsed as just one. Lua 5.1 was newline sensitive: it would throw an error if an otherwise complete _expression_ was continued by a newline, followed by an open paren. Lua 5.2 removed the check.My feeling is that this was a bad change -- I've never come across a case where the error was triggered by bug-free code.