summaryrefslogtreecommitdiff
path: root/User/lua-module.sublime-snippet
blob: 9c40cb2c99f735956358a9ce8a5d076820690309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<snippet>
	<content><![CDATA[
--- ${2:Description}
-- @module ${3:${TM_FILEPATH/^(\/(?:home\/\w+\/)?)|(\/)|(\.lua$)/(?2.)/g}}
local ${1:${TM_FILENAME/\.lua$//}} = {}

${4:}

return ${1:}
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>module</tabTrigger>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<scope>source.lua</scope>
</snippet>