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
Weird. I tried with Lua 5.1.5 and got the above deprecated message.
tj@ami:~$ lua test.lua
lua: test.lua:7: nesting of [[...]] is deprecated near '['
tj@ami:~$ lua -v
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
tj@ami:~$ lua5.3 test.lua
Do not show me this
Multiline string
Strange that lua would let you shoot yourself in the foot like that without even a warning.
NeoLua Version: 13.11
Example to reproduce:
Hi i ran into this when i used
--[[
Some code
something = [[ long string ]]
Some Code <-- this executed
--]]
Some more code
I got really confused until i tried with normal lua interpeter where i got:
lua: [string ""]:5: nesting of [[...]] is deprecated near '['
I think NeoLua also should make nesting [[...]] an error.
Note for others: You should enclose long strings in [=[...]=], [==[...]==], [===[...]===], etc to avoid this.
The text was updated successfully, but these errors were encountered: