diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2019-12-07 23:06:14 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2019-12-07 23:06:14 +0100 |
commit | cdc9057adf122944ace0fc89d0a9f1e31c9a7ada (patch) | |
tree | 3609df8bc560e1e2b0af024cc2372a104960f639 /User/lua-class.sublime-snippet | |
download | sublime-text-3-packages-cdc9057adf122944ace0fc89d0a9f1e31c9a7ada.tar.gz sublime-text-3-packages-cdc9057adf122944ace0fc89d0a9f1e31c9a7ada.tar.bz2 sublime-text-3-packages-cdc9057adf122944ace0fc89d0a9f1e31c9a7ada.zip |
init
Diffstat (limited to 'User/lua-class.sublime-snippet')
-rw-r--r-- | User/lua-class.sublime-snippet | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/User/lua-class.sublime-snippet b/User/lua-class.sublime-snippet new file mode 100644 index 0000000..15479d5 --- /dev/null +++ b/User/lua-class.sublime-snippet @@ -0,0 +1,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> |