|
Another source of surpirses is the block-commment vs nested table indexing:
--[[
a=b[c[d]]
error()
--]]errors until you put a space between ] and ] in the commented code.
Jorge
On 11/2/21 5:28 AM, Egor Skriptunoff wrote:On Mon, Nov 1, 2021 at 8:48 PM Alex Light wrote:
Lua fails to parse code such as '0.."foo"'The Lua team tries to keep the Lua source files compact.So, the Lua parser is intentionally more simple than it should be.http://lua-users.org/lists/lua-l/2012-09/msg00249.html