1
0
Fork 0
mirror of https://github.com/Reuh/language-candran.git synced 2025-10-28 04:39:31 +00:00

Add snippet for creating a local function

This commit is contained in:
Robert Machmer 2015-04-04 16:18:17 +02:00
parent bc0ddc02b6
commit ff6f1af0db
2 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,9 @@
'for k,v in pairs()':
'prefix': 'forp'
'body': 'for ${1:k},${2:v} in pairs(${3:table_name}) do\n\t${0:-- body...}\nend'
'local function':
'prefix': 'lfun'
'body': 'local function ${1:FunctionName} (${2:args})\n\t${0:-- body...}\nend'
'local variable definition':
'prefix': 'local'
'body': 'local ${1:x} = ${0:1}'