1
0
Fork 0
mirror of https://github.com/Reuh/language-candran.git synced 2025-10-27 20:29: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

@ -21,6 +21,7 @@ Common snippets
| ife | if else conditional | if value then --body... else --body... end |
| ifn | if not conditional | if not value then --body... end |
| ifne | if not else conditional | if not value then --body... else --body... end |
| lfun | local function | local function functionName (args) -- body... end |
| loc | local variable definition shortcut | local x = 1 |
| local | local variable definition | local x = 1 |
| ltab | local table definition | local name = {} |