blob: 15479d5889f91595944adcbefc33286b6d5ee70b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<snippet>
<content><![CDATA[
--- ${3:Short description}
-- @type ${1:MyClass}
${2:${TM_FILENAME/.lua$//}}.${1:MyClass} = {}
--- Create a new ${1:MyClass}
-- @treturn ${1:MyClass}
function ${2:${TM_FILENAME/.lua$//}}.${1:MyClass}:new()
return utils.mkobject(self)
end
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>class</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.lua,source.luae</scope>
</snippet>
|