mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 11:00:39 -05:00
d613d7e1a2
Upgrade Ace to v1.4.3 GitOrigin-RevId: 810350080a6b89fd9817ebcacde7e9817097d99a
62 lines
No EOL
1.5 KiB
JavaScript
62 lines
No EOL
1.5 KiB
JavaScript
ace.define("ace/snippets/csound_orchestra",[], function(require, exports, module) {
|
|
"use strict";
|
|
|
|
exports.snippetText = "# else\n\
|
|
snippet else\n\
|
|
else\n\
|
|
${1:/* statements */}\n\
|
|
# elseif\n\
|
|
snippet elseif\n\
|
|
elseif ${1:/* condition */} then\n\
|
|
${2:/* statements */}\n\
|
|
# if\n\
|
|
snippet if\n\
|
|
if ${1:/* condition */} then\n\
|
|
${2:/* statements */}\n\
|
|
endif\n\
|
|
# instrument block\n\
|
|
snippet instr\n\
|
|
instr ${1:name}\n\
|
|
${2:/* statements */}\n\
|
|
endin\n\
|
|
# i-time while loop\n\
|
|
snippet iwhile\n\
|
|
i${1:Index} = ${2:0}\n\
|
|
while i${1:Index} < ${3:/* count */} do\n\
|
|
${4:/* statements */}\n\
|
|
i${1:Index} += 1\n\
|
|
od\n\
|
|
# k-rate while loop\n\
|
|
snippet kwhile\n\
|
|
k${1:Index} = ${2:0}\n\
|
|
while k${1:Index} < ${3:/* count */} do\n\
|
|
${4:/* statements */}\n\
|
|
k${1:Index} += 1\n\
|
|
od\n\
|
|
# opcode\n\
|
|
snippet opcode\n\
|
|
opcode ${1:name}, ${2:/* output types */ 0}, ${3:/* input types */ 0}\n\
|
|
${4:/* statements */}\n\
|
|
endop\n\
|
|
# until loop\n\
|
|
snippet until\n\
|
|
until ${1:/* condition */} do\n\
|
|
${2:/* statements */}\n\
|
|
od\n\
|
|
# while loop\n\
|
|
snippet while\n\
|
|
while ${1:/* condition */} do\n\
|
|
${2:/* statements */}\n\
|
|
od\n\
|
|
";
|
|
exports.scope = "csound_orchestra";
|
|
|
|
});
|
|
(function() {
|
|
ace.require(["ace/snippets/csound_orchestra"], function(m) {
|
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
module.exports = m;
|
|
}
|
|
});
|
|
})();
|
|
|