mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
d613d7e1a2
Upgrade Ace to v1.4.3 GitOrigin-RevId: 810350080a6b89fd9817ebcacde7e9817097d99a
49 lines
No EOL
1 KiB
JavaScript
49 lines
No EOL
1 KiB
JavaScript
ace.define("ace/snippets/gobstones",[], 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";
|
|
|
|
});
|
|
(function() {
|
|
ace.require(["ace/snippets/gobstones"], function(m) {
|
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
module.exports = m;
|
|
}
|
|
});
|
|
})();
|
|
|