Multi line comments cause crash on ios


#1

I found very strange problem with multi line comments, code like this cause crashes on iOS (android, html5 and mac works fine)

ERROR:GAMEOBJECT: Error running script: main/init.script:3: nesting of [[…]] is deprecated near ‘[’

--[[
    line 1
--[[
    test 2
--]]

In the editor code looks good:


#2

Nested block comments are not allowed in Lua. See https://en.m.wikibooks.org/wiki/Lua_Programming/comment#Nested_comments

We are running LuaJIT on many platforms and it might behave differently.


#3

Ok, I understand. But it very strange, that it’s fail only on iOS o_O


#4

Well, we currently don’t run LuaJIT on iOS.