corrade-nucleus-nucleons – Blame information for rev 20
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | ace.define("ace/snippets/gobstones",["require","exports","module"], function(require, exports, module) { |
2 | "use strict"; |
||
3 | |||
4 | exports.snippetText = "# Procedure\n\ |
||
5 | snippet proc\n\ |
||
6 | procedure ${1?:name}(${2:argument}) {\n\ |
||
7 | ${3:// body...}\n\ |
||
8 | }\n\ |
||
9 | \n\ |
||
10 | # Function\n\ |
||
11 | snippet fun\n\ |
||
12 | function ${1?:name}(${2:argument}) {\n\ |
||
13 | return ${3:// body...}\n\ |
||
14 | }\n\ |
||
15 | \n\ |
||
16 | # Repeat\n\ |
||
17 | snippet rep\n\ |
||
18 | repeat ${1?:times} {\n\ |
||
19 | ${2:// body...}\n\ |
||
20 | }\n\ |
||
21 | \n\ |
||
22 | # For\n\ |
||
23 | snippet for\n\ |
||
24 | foreach ${1?:e} in ${2?:list} {\n\ |
||
25 | ${3:// body...} \n\ |
||
26 | }\n\ |
||
27 | \n\ |
||
28 | # If\n\ |
||
29 | snippet if\n\ |
||
30 | if (${1?:condition}) {\n\ |
||
31 | ${3:// body...} \n\ |
||
32 | }\n\ |
||
33 | \n\ |
||
34 | # While\n\ |
||
35 | while (${1?:condition}) {\n\ |
||
36 | ${2:// body...} \n\ |
||
37 | }\n\ |
||
38 | "; |
||
39 | exports.scope = "gobstones"; |
||
40 | |||
41 | }); |