Hey,
Just went to create a new module only to discover that my Lua snippets have vanished into thin air! >:|
Corona Editor SDK seems the likely suspect, but I was wondering if anyone else had noticed a similar issue? Maybe I’m just an idiot and I deleted them in my sleep or something.
Thanks,
BTW - they were backed up. Nothing too exciting but I use them fairly regularly:
<snippet>
<content><![CDATA[
local M={}
${1:modulename}=M
${2}
setfenv(1,M)
${3}
return M
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>local M</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.lua</scope>
</snippet>
<snippet>
<content><![CDATA[
function ${1}:touch(event)
if event.phase==“began” then
self.touchId=event.id
end
if event.id~=self.touchId then
return
end
if event.phase==“ended” then
${2}
end
end
${3:Runtime}:addEventListener(“touch”,${4})
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>touch</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.lua</scope>
</snippet>