summaryrefslogtreecommitdiff
path: root/htdocs/js/ace/snippets/lua.js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/js/ace/snippets/lua.js')
-rw-r--r--htdocs/js/ace/snippets/lua.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/htdocs/js/ace/snippets/lua.js b/htdocs/js/ace/snippets/lua.js
new file mode 100644
index 0000000..e7f64e8
--- /dev/null
+++ b/htdocs/js/ace/snippets/lua.js
@@ -0,0 +1 @@
+define("ace/snippets/lua",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet #!\n #!/usr/bin/env lua\n $1\nsnippet local\n local ${1:x} = ${2:1}\nsnippet fun\n function ${1:fname}(${2:...})\n ${3:-- body}\n end\nsnippet for\n for ${1:i}=${2:1},${3:10} do\n ${4:print(i)}\n end\nsnippet forp\n for ${1:i},${2:v} in pairs(${3:table_name}) do\n ${4:-- body}\n end\nsnippet fori\n for ${1:i},${2:v} in ipairs(${3:table_name}) do\n ${4:-- body}\n end\n",t.scope="lua"}) \ No newline at end of file