mediawiki-extensions-CodeEd.../modules/ace/snippets/gobstones.js
Derk-Jan Hartman c158ae5602 Update Ace and use scoped require / define
This brings Ace to upstream commit
4a55188fdb0eee9e2d3854f175e67408a1e47655

Bug: T127643
Change-Id: I7699e842d7b561b8a35cf7a4ea048f4126eaf856
2016-03-14 00:26:27 +01:00

42 lines
721 B
JavaScript

ace.define("ace/snippets/gobstones",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "# Procedure\n\
snippet proc\n\
procedure ${1?:name}(${2:argument}) {\n\
${3:// body...}\n\
}\n\
\n\
# Function\n\
snippet fun\n\
function ${1?:name}(${2:argument}) {\n\
return ${3:// body...}\n\
}\n\
\n\
# Repeat\n\
snippet rep\n\
repeat ${1?:times} {\n\
${2:// body...}\n\
}\n\
\n\
# For\n\
snippet for\n\
foreach ${1?:e} in ${2?:list} {\n\
${3:// body...} \n\
}\n\
\n\
# If\n\
snippet if\n\
if (${1?:condition}) {\n\
${3:// body...} \n\
}\n\
\n\
# While\n\
while (${1?:condition}) {\n\
${2:// body...} \n\
}\n\
";
exports.scope = "gobstones";
});