summaryrefslogtreecommitdiff
path: root/htdocs/js/ace/snippets/gobstones.js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/js/ace/snippets/gobstones.js')
-rw-r--r--htdocs/js/ace/snippets/gobstones.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/htdocs/js/ace/snippets/gobstones.js b/htdocs/js/ace/snippets/gobstones.js
new file mode 100644
index 0000000..3a54672
--- /dev/null
+++ b/htdocs/js/ace/snippets/gobstones.js
@@ -0,0 +1 @@
+define("ace/snippets/gobstones",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# Procedure\nsnippet proc\n procedure ${1?:name}(${2:argument}) {\n ${3:// body...}\n }\n\n# Function\nsnippet fun\n function ${1?:name}(${2:argument}) {\n return ${3:// body...}\n }\n\n# Repeat\nsnippet rep\n repeat ${1?:times} {\n ${2:// body...}\n }\n\n# For\nsnippet for\n foreach ${1?:e} in ${2?:list} {\n ${3:// body...} \n }\n\n# If\nsnippet if\n if (${1?:condition}) {\n ${3:// body...} \n }\n\n# While\n while (${1?:condition}) {\n ${2:// body...} \n }\n",t.scope="gobstones"}) \ No newline at end of file