Update ACE Editor to version 1.32.6
This commit is contained in:

committed by
Sebastian Serth

parent
0a473c7fd3
commit
b00d45521b
14
vendor/assets/javascripts/ace/snippets/abap.js
vendored
14
vendor/assets/javascripts/ace/snippets/abap.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/abap",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "abap";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/abap"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
50
vendor/assets/javascripts/ace/snippets/abc.js
vendored
50
vendor/assets/javascripts/ace/snippets/abc.js
vendored
@ -1,38 +1,16 @@
|
||||
define("ace/snippets/abc",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "\n\
|
||||
snippet zupfnoter.print\n\
|
||||
%%%%hn.print {\"startpos\": ${1:pos_y}, \"t\":\"${2:title}\", \"v\":[${3:voices}], \"s\":[[${4:syncvoices}1,2]], \"f\":[${5:flowlines}], \"sf\":[${6:subflowlines}], \"j\":[${7:jumplines}]}\n\
|
||||
\n\
|
||||
snippet zupfnoter.note\n\
|
||||
%%%%hn.note {\"pos\": [${1:pos_x},${2:pos_y}], \"text\": \"${3:text}\", \"style\": \"${4:style}\"}\n\
|
||||
\n\
|
||||
snippet zupfnoter.annotation\n\
|
||||
%%%%hn.annotation {\"id\": \"${1:id}\", \"pos\": [${2:pos}], \"text\": \"${3:text}\"}\n\
|
||||
\n\
|
||||
snippet zupfnoter.lyrics\n\
|
||||
%%%%hn.lyrics {\"pos\": [${1:x_pos},${2:y_pos}]}\n\
|
||||
\n\
|
||||
snippet zupfnoter.legend\n\
|
||||
%%%%hn.legend {\"pos\": [${1:x_pos},${2:y_pos}]}\n\
|
||||
\n\
|
||||
\n\
|
||||
\n\
|
||||
snippet zupfnoter.target\n\
|
||||
\"^:${1:target}\"\n\
|
||||
\n\
|
||||
snippet zupfnoter.goto\n\
|
||||
\"^@${1:target}@${2:distance}\"\n\
|
||||
\n\
|
||||
snippet zupfnoter.annotationref\n\
|
||||
\"^#${1:target}\"\n\
|
||||
\n\
|
||||
snippet zupfnoter.annotation\n\
|
||||
\"^!${1:text}@${2:x_offset},${3:y_offset}\"\n\
|
||||
\n\
|
||||
\n\
|
||||
";
|
||||
exports.scope = "abc";
|
||||
define("ace/snippets/abc.snippets",["require","exports","module"], function(require, exports, module){module.exports = "\nsnippet zupfnoter.print\n\t%%%%hn.print {\"startpos\": ${1:pos_y}, \"t\":\"${2:title}\", \"v\":[${3:voices}], \"s\":[[${4:syncvoices}1,2]], \"f\":[${5:flowlines}], \"sf\":[${6:subflowlines}], \"j\":[${7:jumplines}]}\n\nsnippet zupfnoter.note\n\t%%%%hn.note {\"pos\": [${1:pos_x},${2:pos_y}], \"text\": \"${3:text}\", \"style\": \"${4:style}\"}\n\nsnippet zupfnoter.annotation\n\t%%%%hn.annotation {\"id\": \"${1:id}\", \"pos\": [${2:pos}], \"text\": \"${3:text}\"}\n\nsnippet zupfnoter.lyrics\n\t%%%%hn.lyrics {\"pos\": [${1:x_pos},${2:y_pos}]}\n\nsnippet zupfnoter.legend\n\t%%%%hn.legend {\"pos\": [${1:x_pos},${2:y_pos}]}\n\n\n\nsnippet zupfnoter.target\n\t\"^:${1:target}\"\n\nsnippet zupfnoter.goto\n\t\"^@${1:target}@${2:distance}\"\n\nsnippet zupfnoter.annotationref\n\t\"^#${1:target}\"\n\nsnippet zupfnoter.annotation\n\t\"^!${1:text}@${2:x_offset},${3:y_offset}\"\n\n\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/abc",["require","exports","module","ace/snippets/abc.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./abc.snippets");
|
||||
exports.scope = "abc";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/abc"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,164 +1,16 @@
|
||||
define("ace/snippets/actionscript",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet main\n\
|
||||
package {\n\
|
||||
import flash.display.*;\n\
|
||||
import flash.Events.*;\n\
|
||||
\n\
|
||||
public class Main extends Sprite {\n\
|
||||
public function Main ( ) {\n\
|
||||
trace(\"start\");\n\
|
||||
stage.scaleMode = StageScaleMode.NO_SCALE;\n\
|
||||
stage.addEventListener(Event.RESIZE, resizeListener);\n\
|
||||
}\n\
|
||||
\n\
|
||||
private function resizeListener (e:Event):void {\n\
|
||||
trace(\"The application window changed size!\");\n\
|
||||
trace(\"New width: \" + stage.stageWidth);\n\
|
||||
trace(\"New height: \" + stage.stageHeight);\n\
|
||||
}\n\
|
||||
\n\
|
||||
}\n\
|
||||
\n\
|
||||
}\n\
|
||||
snippet class\n\
|
||||
${1:public|internal} class ${2:name} ${3:extends } {\n\
|
||||
public function $2 ( ) {\n\
|
||||
(\"start\");\n\
|
||||
}\n\
|
||||
}\n\
|
||||
snippet all\n\
|
||||
package name {\n\
|
||||
\n\
|
||||
${1:public|internal|final} class ${2:name} ${3:extends } {\n\
|
||||
private|public| static const FOO = \"abc\";\n\
|
||||
private|public| static var BAR = \"abc\";\n\
|
||||
\n\
|
||||
// class initializer - no JIT !! one time setup\n\
|
||||
if Cababilities.os == \"Linux|MacOS\" {\n\
|
||||
FOO = \"other\";\n\
|
||||
}\n\
|
||||
\n\
|
||||
// constructor:\n\
|
||||
public function $2 ( ){\n\
|
||||
super2();\n\
|
||||
trace(\"start\");\n\
|
||||
}\n\
|
||||
public function name (a, b...){\n\
|
||||
super.name(..);\n\
|
||||
lable:break\n\
|
||||
}\n\
|
||||
}\n\
|
||||
}\n\
|
||||
\n\
|
||||
function A(){\n\
|
||||
// A can only be accessed within this file\n\
|
||||
}\n\
|
||||
snippet switch\n\
|
||||
switch(${1}){\n\
|
||||
case ${2}:\n\
|
||||
${3}\n\
|
||||
break;\n\
|
||||
default:\n\
|
||||
}\n\
|
||||
snippet case\n\
|
||||
case ${1}:\n\
|
||||
${2}\n\
|
||||
break;\n\
|
||||
snippet package\n\
|
||||
package ${1:package}{\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet wh\n\
|
||||
while ${1:cond}{\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet do\n\
|
||||
do {\n\
|
||||
${2}\n\
|
||||
} while (${1:cond})\n\
|
||||
snippet while\n\
|
||||
while ${1:cond}{\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet for enumerate names\n\
|
||||
for (${1:var} in ${2:object}){\n\
|
||||
${3}\n\
|
||||
}\n\
|
||||
snippet for enumerate values\n\
|
||||
for each (${1:var} in ${2:object}){\n\
|
||||
${3}\n\
|
||||
}\n\
|
||||
snippet get_set\n\
|
||||
function get ${1:name} {\n\
|
||||
return ${2}\n\
|
||||
}\n\
|
||||
function set $1 (newValue) {\n\
|
||||
${3}\n\
|
||||
}\n\
|
||||
snippet interface\n\
|
||||
interface name {\n\
|
||||
function method(${1}):${2:returntype};\n\
|
||||
}\n\
|
||||
snippet try\n\
|
||||
try {\n\
|
||||
${1}\n\
|
||||
} catch (error:ErrorType) {\n\
|
||||
${2}\n\
|
||||
} finally {\n\
|
||||
${3}\n\
|
||||
}\n\
|
||||
# For Loop (same as c.snippet)\n\
|
||||
snippet for for (..) {..}\n\
|
||||
for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\
|
||||
${4:/* code */}\n\
|
||||
}\n\
|
||||
# Custom For Loop\n\
|
||||
snippet forr\n\
|
||||
for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {\n\
|
||||
${5:/* code */}\n\
|
||||
}\n\
|
||||
# If Condition\n\
|
||||
snippet if\n\
|
||||
if (${1:/* condition */}) {\n\
|
||||
${2:/* code */}\n\
|
||||
}\n\
|
||||
snippet el\n\
|
||||
else {\n\
|
||||
${1}\n\
|
||||
}\n\
|
||||
# Ternary conditional\n\
|
||||
snippet t\n\
|
||||
${1:/* condition */} ? ${2:a} : ${3:b}\n\
|
||||
snippet fun\n\
|
||||
function ${1:function_name}(${2})${3}\n\
|
||||
{\n\
|
||||
${4:/* code */}\n\
|
||||
}\n\
|
||||
# FlxSprite (usefull when using the flixel library)\n\
|
||||
snippet FlxSprite\n\
|
||||
package\n\
|
||||
{\n\
|
||||
import org.flixel.*\n\
|
||||
\n\
|
||||
public class ${1:ClassName} extends ${2:FlxSprite}\n\
|
||||
{\n\
|
||||
public function $1(${3: X:Number, Y:Number}):void\n\
|
||||
{\n\
|
||||
super(X,Y);\n\
|
||||
${4: //code...}\n\
|
||||
}\n\
|
||||
\n\
|
||||
override public function update():void\n\
|
||||
{\n\
|
||||
super.update();\n\
|
||||
${5: //code...}\n\
|
||||
}\n\
|
||||
}\n\
|
||||
}\n\
|
||||
\n\
|
||||
";
|
||||
exports.scope = "actionscript";
|
||||
define("ace/snippets/actionscript.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet main\n\tpackage {\n\t\timport flash.display.*;\n\t\timport flash.Events.*;\n\t\n\t\tpublic class Main extends Sprite {\n\t\t\tpublic function Main (\t) {\n\t\t\t\ttrace(\"start\");\n\t\t\t\tstage.scaleMode = StageScaleMode.NO_SCALE;\n\t\t\t\tstage.addEventListener(Event.RESIZE, resizeListener);\n\t\t\t}\n\t\n\t\t\tprivate function resizeListener (e:Event):void {\n\t\t\t\ttrace(\"The application window changed size!\");\n\t\t\t\ttrace(\"New width: \" + stage.stageWidth);\n\t\t\t\ttrace(\"New height: \" + stage.stageHeight);\n\t\t\t}\n\t\n\t\t}\n\t\n\t}\nsnippet class\n\t${1:public|internal} class ${2:name} ${3:extends } {\n\t\tpublic function $2 (\t) {\n\t\t\t(\"start\");\n\t\t}\n\t}\nsnippet all\n\tpackage name {\n\n\t\t${1:public|internal|final} class ${2:name} ${3:extends } {\n\t\t\tprivate|public| static const FOO = \"abc\";\n\t\t\tprivate|public| static var BAR = \"abc\";\n\n\t\t\t// class initializer - no JIT !! one time setup\n\t\t\tif Cababilities.os == \"Linux|MacOS\" {\n\t\t\t\tFOO = \"other\";\n\t\t\t}\n\n\t\t\t// constructor:\n\t\t\tpublic function $2 (\t){\n\t\t\t\tsuper2();\n\t\t\t\ttrace(\"start\");\n\t\t\t}\n\t\t\tpublic function name (a, b...){\n\t\t\t\tsuper.name(..);\n\t\t\t\tlable:break\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction A(){\n\t\t// A can only be accessed within this file\n\t}\nsnippet switch\n\tswitch(${1}){\n\t\tcase ${2}:\n\t\t\t${3}\n\t\tbreak;\n\t\tdefault:\n\t}\nsnippet case\n\t\tcase ${1}:\n\t\t\t${2}\n\t\tbreak;\nsnippet package\n\tpackage ${1:package}{\n\t\t${2}\n\t}\nsnippet wh\n\twhile ${1:cond}{\n\t\t${2}\n\t}\nsnippet do\n\tdo {\n\t\t${2}\n\t} while (${1:cond})\nsnippet while\n\twhile ${1:cond}{\n\t\t${2}\n\t}\nsnippet for enumerate names\n\tfor (${1:var} in ${2:object}){\n\t\t${3}\n\t}\nsnippet for enumerate values\n\tfor each (${1:var} in ${2:object}){\n\t\t${3}\n\t}\nsnippet get_set\n\tfunction get ${1:name} {\n\t\treturn ${2}\n\t}\n\tfunction set $1 (newValue) {\n\t\t${3}\n\t}\nsnippet interface\n\tinterface name {\n\t\tfunction method(${1}):${2:returntype};\n\t}\nsnippet try\n\ttry {\n\t\t${1}\n\t} catch (error:ErrorType) {\n\t\t${2}\n\t} finally {\n\t\t${3}\n\t}\n# For Loop (same as c.snippet)\nsnippet for for (..) {..}\n\tfor (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\t\t${4:/* code */}\n\t}\n# Custom For Loop\nsnippet forr\n\tfor (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {\n\t\t${5:/* code */}\n\t}\n# If Condition\nsnippet if\n\tif (${1:/* condition */}) {\n\t\t${2:/* code */}\n\t}\nsnippet el\n\telse {\n\t\t${1}\n\t}\n# Ternary conditional\nsnippet t\n\t${1:/* condition */} ? ${2:a} : ${3:b}\nsnippet fun\n\tfunction ${1:function_name}(${2})${3}\n\t{\n\t\t${4:/* code */}\n\t}\n# FlxSprite (usefull when using the flixel library)\nsnippet FlxSprite\n\tpackage\n\t{\n\t\timport org.flixel.*\n\n\t\tpublic class ${1:ClassName} extends ${2:FlxSprite}\n\t\t{\n\t\t\tpublic function $1(${3: X:Number, Y:Number}):void\n\t\t\t{\n\t\t\t\tsuper(X,Y);\n\t\t\t\t${4: //code...}\n\t\t\t}\n\n\t\t\toverride public function update():void\n\t\t\t{\n\t\t\t\tsuper.update();\n\t\t\t\t${5: //code...}\n\t\t\t}\n\t\t}\n\t}\n\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/actionscript",["require","exports","module","ace/snippets/actionscript.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./actionscript.snippets");
|
||||
exports.scope = "actionscript";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/actionscript"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/ada.js
vendored
14
vendor/assets/javascripts/ace/snippets/ada.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/ada",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "ada";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/ada"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/alda.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/alda.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/alda"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/apache_conf",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "apache_conf";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/apache_conf"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/apex.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/apex.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/apex"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/applescript",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "applescript";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/applescript"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/aql.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/aql.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/aql"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/asciidoc",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "asciidoc";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/asciidoc"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/asl.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/asl.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/asl"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/assembly_x86",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "assembly_x86";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/assembly_x86"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/astro.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/astro.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/astro"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/autohotkey",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "autohotkey";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/autohotkey"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/batchfile",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "batchfile";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/batchfile"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/bibtex.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/bibtex.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/bibtex"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +0,0 @@
|
||||
define("ace/snippets/bro",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "";
|
||||
|
||||
});
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/c9search",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "c9search";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/c9search"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
150
vendor/assets/javascripts/ace/snippets/c_cpp.js
vendored
150
vendor/assets/javascripts/ace/snippets/c_cpp.js
vendored
@ -1,138 +1,16 @@
|
||||
define("ace/snippets/c_cpp",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "## STL Collections\n\
|
||||
# std::array\n\
|
||||
snippet array\n\
|
||||
std::array<${1:T}, ${2:N}> ${3};${4}\n\
|
||||
# std::vector\n\
|
||||
snippet vector\n\
|
||||
std::vector<${1:T}> ${2};${3}\n\
|
||||
# std::deque\n\
|
||||
snippet deque\n\
|
||||
std::deque<${1:T}> ${2};${3}\n\
|
||||
# std::forward_list\n\
|
||||
snippet flist\n\
|
||||
std::forward_list<${1:T}> ${2};${3}\n\
|
||||
# std::list\n\
|
||||
snippet list\n\
|
||||
std::list<${1:T}> ${2};${3}\n\
|
||||
# std::set\n\
|
||||
snippet set\n\
|
||||
std::set<${1:T}> ${2};${3}\n\
|
||||
# std::map\n\
|
||||
snippet map\n\
|
||||
std::map<${1:Key}, ${2:T}> ${3};${4}\n\
|
||||
# std::multiset\n\
|
||||
snippet mset\n\
|
||||
std::multiset<${1:T}> ${2};${3}\n\
|
||||
# std::multimap\n\
|
||||
snippet mmap\n\
|
||||
std::multimap<${1:Key}, ${2:T}> ${3};${4}\n\
|
||||
# std::unordered_set\n\
|
||||
snippet uset\n\
|
||||
std::unordered_set<${1:T}> ${2};${3}\n\
|
||||
# std::unordered_map\n\
|
||||
snippet umap\n\
|
||||
std::unordered_map<${1:Key}, ${2:T}> ${3};${4}\n\
|
||||
# std::unordered_multiset\n\
|
||||
snippet umset\n\
|
||||
std::unordered_multiset<${1:T}> ${2};${3}\n\
|
||||
# std::unordered_multimap\n\
|
||||
snippet ummap\n\
|
||||
std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}\n\
|
||||
# std::stack\n\
|
||||
snippet stack\n\
|
||||
std::stack<${1:T}> ${2};${3}\n\
|
||||
# std::queue\n\
|
||||
snippet queue\n\
|
||||
std::queue<${1:T}> ${2};${3}\n\
|
||||
# std::priority_queue\n\
|
||||
snippet pqueue\n\
|
||||
std::priority_queue<${1:T}> ${2};${3}\n\
|
||||
##\n\
|
||||
## Access Modifiers\n\
|
||||
# private\n\
|
||||
snippet pri\n\
|
||||
private\n\
|
||||
# protected\n\
|
||||
snippet pro\n\
|
||||
protected\n\
|
||||
# public\n\
|
||||
snippet pub\n\
|
||||
public\n\
|
||||
# friend\n\
|
||||
snippet fr\n\
|
||||
friend\n\
|
||||
# mutable\n\
|
||||
snippet mu\n\
|
||||
mutable\n\
|
||||
## \n\
|
||||
## Class\n\
|
||||
# class\n\
|
||||
snippet cl\n\
|
||||
class ${1:`Filename('$1', 'name')`} \n\
|
||||
{\n\
|
||||
public:\n\
|
||||
$1(${2});\n\
|
||||
~$1();\n\
|
||||
\n\
|
||||
private:\n\
|
||||
${3:/* data */}\n\
|
||||
};\n\
|
||||
# member function implementation\n\
|
||||
snippet mfun\n\
|
||||
${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {\n\
|
||||
${5:/* code */}\n\
|
||||
}\n\
|
||||
# namespace\n\
|
||||
snippet ns\n\
|
||||
namespace ${1:`Filename('', 'my')`} {\n\
|
||||
${2}\n\
|
||||
} /* namespace $1 */\n\
|
||||
##\n\
|
||||
## Input/Output\n\
|
||||
# std::cout\n\
|
||||
snippet cout\n\
|
||||
std::cout << ${1} << std::endl;${2}\n\
|
||||
# std::cin\n\
|
||||
snippet cin\n\
|
||||
std::cin >> ${1};${2}\n\
|
||||
##\n\
|
||||
## Iteration\n\
|
||||
# for i \n\
|
||||
snippet fori\n\
|
||||
for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\
|
||||
${4:/* code */}\n\
|
||||
}${5}\n\
|
||||
\n\
|
||||
# foreach\n\
|
||||
snippet fore\n\
|
||||
for (${1:auto} ${2:i} : ${3:container}) {\n\
|
||||
${4:/* code */}\n\
|
||||
}${5}\n\
|
||||
# iterator\n\
|
||||
snippet iter\n\
|
||||
for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {\n\
|
||||
${6}\n\
|
||||
}${7}\n\
|
||||
\n\
|
||||
# auto iterator\n\
|
||||
snippet itera\n\
|
||||
for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {\n\
|
||||
${2:std::cout << *$1 << std::endl;}\n\
|
||||
}${3}\n\
|
||||
##\n\
|
||||
## Lambdas\n\
|
||||
# lamda (one line)\n\
|
||||
snippet ld\n\
|
||||
[${1}](${2}){${3:/* code */}}${4}\n\
|
||||
# lambda (multi-line)\n\
|
||||
snippet lld\n\
|
||||
[${1}](${2}){\n\
|
||||
${3:/* code */}\n\
|
||||
}${4}\n\
|
||||
";
|
||||
exports.scope = "c_cpp";
|
||||
define("ace/snippets/c_cpp.snippets",["require","exports","module"], function(require, exports, module){module.exports = "## STL Collections\n# std::array\nsnippet array\n\tstd::array<${1:T}, ${2:N}> ${3};${4}\n# std::vector\nsnippet vector\n\tstd::vector<${1:T}> ${2};${3}\n# std::deque\nsnippet deque\n\tstd::deque<${1:T}> ${2};${3}\n# std::forward_list\nsnippet flist\n\tstd::forward_list<${1:T}> ${2};${3}\n# std::list\nsnippet list\n\tstd::list<${1:T}> ${2};${3}\n# std::set\nsnippet set\n\tstd::set<${1:T}> ${2};${3}\n# std::map\nsnippet map\n\tstd::map<${1:Key}, ${2:T}> ${3};${4}\n# std::multiset\nsnippet mset\n\tstd::multiset<${1:T}> ${2};${3}\n# std::multimap\nsnippet mmap\n\tstd::multimap<${1:Key}, ${2:T}> ${3};${4}\n# std::unordered_set\nsnippet uset\n\tstd::unordered_set<${1:T}> ${2};${3}\n# std::unordered_map\nsnippet umap\n\tstd::unordered_map<${1:Key}, ${2:T}> ${3};${4}\n# std::unordered_multiset\nsnippet umset\n\tstd::unordered_multiset<${1:T}> ${2};${3}\n# std::unordered_multimap\nsnippet ummap\n\tstd::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}\n# std::stack\nsnippet stack\n\tstd::stack<${1:T}> ${2};${3}\n# std::queue\nsnippet queue\n\tstd::queue<${1:T}> ${2};${3}\n# std::priority_queue\nsnippet pqueue\n\tstd::priority_queue<${1:T}> ${2};${3}\n##\n## Access Modifiers\n# private\nsnippet pri\n\tprivate\n# protected\nsnippet pro\n\tprotected\n# public\nsnippet pub\n\tpublic\n# friend\nsnippet fr\n\tfriend\n# mutable\nsnippet mu\n\tmutable\n## \n## Class\n# class\nsnippet cl\n\tclass ${1:`Filename('$1', 'name')`} \n\t{\n\tpublic:\n\t\t$1(${2});\n\t\t~$1();\n\n\tprivate:\n\t\t${3:/* data */}\n\t};\n# member function implementation\nsnippet mfun\n\t${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {\n\t\t${5:/* code */}\n\t}\n# namespace\nsnippet ns\n\tnamespace ${1:`Filename('', 'my')`} {\n\t\t${2}\n\t} /* namespace $1 */\n##\n## Input/Output\n# std::cout\nsnippet cout\n\tstd::cout << ${1} << std::endl;${2}\n# std::cin\nsnippet cin\n\tstd::cin >> ${1};${2}\n##\n## Iteration\n# for i \nsnippet fori\n\tfor (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\t\t${4:/* code */}\n\t}${5}\n\n# foreach\nsnippet fore\n\tfor (${1:auto} ${2:i} : ${3:container}) {\n\t\t${4:/* code */}\n\t}${5}\n# iterator\nsnippet iter\n\tfor (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {\n\t\t${6}\n\t}${7}\n\n# auto iterator\nsnippet itera\n\tfor (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {\n\t\t${2:std::cout << *$1 << std::endl;}\n\t}${3}\n##\n## Lambdas\n# lamda (one line)\nsnippet ld\n\t[${1}](${2}){${3:/* code */}}${4}\n# lambda (multi-line)\nsnippet lld\n\t[${1}](${2}){\n\t\t${3:/* code */}\n\t}${4}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/c_cpp",["require","exports","module","ace/snippets/c_cpp.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./c_cpp.snippets");
|
||||
exports.scope = "c_cpp";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/c_cpp"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/cirru.js
vendored
14
vendor/assets/javascripts/ace/snippets/cirru.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/cirru",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "cirru";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/cirru"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
109
vendor/assets/javascripts/ace/snippets/clojure.js
vendored
109
vendor/assets/javascripts/ace/snippets/clojure.js
vendored
@ -1,97 +1,16 @@
|
||||
define("ace/snippets/clojure",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet comm\n\
|
||||
(comment\n\
|
||||
${1}\n\
|
||||
)\n\
|
||||
snippet condp\n\
|
||||
(condp ${1:pred} ${2:expr}\n\
|
||||
${3})\n\
|
||||
snippet def\n\
|
||||
(def ${1})\n\
|
||||
snippet defm\n\
|
||||
(defmethod ${1:multifn} \"${2:doc-string}\" ${3:dispatch-val} [${4:args}]\n\
|
||||
${5})\n\
|
||||
snippet defmm\n\
|
||||
(defmulti ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\
|
||||
snippet defma\n\
|
||||
(defmacro ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\
|
||||
snippet defn\n\
|
||||
(defn ${1:name} \"${2:doc-string}\" [${3:arg-list}]\n\
|
||||
${4})\n\
|
||||
snippet defp\n\
|
||||
(defprotocol ${1:name}\n\
|
||||
${2})\n\
|
||||
snippet defr\n\
|
||||
(defrecord ${1:name} [${2:fields}]\n\
|
||||
${3:protocol}\n\
|
||||
${4})\n\
|
||||
snippet deft\n\
|
||||
(deftest ${1:name}\n\
|
||||
(is (= ${2:assertion})))\n\
|
||||
${3})\n\
|
||||
snippet is\n\
|
||||
(is (= ${1} ${2}))\n\
|
||||
snippet defty\n\
|
||||
(deftype ${1:Name} [${2:fields}]\n\
|
||||
${3:Protocol}\n\
|
||||
${4})\n\
|
||||
snippet doseq\n\
|
||||
(doseq [${1:elem} ${2:coll}]\n\
|
||||
${3})\n\
|
||||
snippet fn\n\
|
||||
(fn [${1:arg-list}] ${2})\n\
|
||||
snippet if\n\
|
||||
(if ${1:test-expr}\n\
|
||||
${2:then-expr}\n\
|
||||
${3:else-expr})\n\
|
||||
snippet if-let \n\
|
||||
(if-let [${1:result} ${2:test-expr}]\n\
|
||||
(${3:then-expr} $1)\n\
|
||||
(${4:else-expr}))\n\
|
||||
snippet imp\n\
|
||||
(:import [${1:package}])\n\
|
||||
& {:keys [${1:keys}] :or {${2:defaults}}}\n\
|
||||
snippet let\n\
|
||||
(let [${1:name} ${2:expr}]\n\
|
||||
${3})\n\
|
||||
snippet letfn\n\
|
||||
(letfn [(${1:name) [${2:args}]\n\
|
||||
${3})])\n\
|
||||
snippet map\n\
|
||||
(map ${1:func} ${2:coll})\n\
|
||||
snippet mapl\n\
|
||||
(map #(${1:lambda}) ${2:coll})\n\
|
||||
snippet met\n\
|
||||
(${1:name} [${2:this} ${3:args}]\n\
|
||||
${4})\n\
|
||||
snippet ns\n\
|
||||
(ns ${1:name}\n\
|
||||
${2})\n\
|
||||
snippet dotimes\n\
|
||||
(dotimes [_ 10]\n\
|
||||
(time\n\
|
||||
(dotimes [_ ${1:times}]\n\
|
||||
${2})))\n\
|
||||
snippet pmethod\n\
|
||||
(${1:name} [${2:this} ${3:args}])\n\
|
||||
snippet refer\n\
|
||||
(:refer-clojure :exclude [${1}])\n\
|
||||
snippet require\n\
|
||||
(:require [${1:namespace} :as [${2}]])\n\
|
||||
snippet use\n\
|
||||
(:use [${1:namespace} :only [${2}]])\n\
|
||||
snippet print\n\
|
||||
(println ${1})\n\
|
||||
snippet reduce\n\
|
||||
(reduce ${1:(fn [p n] ${3})} ${2})\n\
|
||||
snippet when\n\
|
||||
(when ${1:test} ${2:body})\n\
|
||||
snippet when-let\n\
|
||||
(when-let [${1:result} ${2:test}]\n\
|
||||
${3:body})\n\
|
||||
";
|
||||
exports.scope = "clojure";
|
||||
define("ace/snippets/clojure.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet comm\n\t(comment\n\t ${1}\n\t )\nsnippet condp\n\t(condp ${1:pred} ${2:expr}\n\t ${3})\nsnippet def\n\t(def ${1})\nsnippet defm\n\t(defmethod ${1:multifn} \"${2:doc-string}\" ${3:dispatch-val} [${4:args}]\n\t ${5})\nsnippet defmm\n\t(defmulti ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\nsnippet defma\n\t(defmacro ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\nsnippet defn\n\t(defn ${1:name} \"${2:doc-string}\" [${3:arg-list}]\n\t ${4})\nsnippet defp\n\t(defprotocol ${1:name}\n\t ${2})\nsnippet defr\n\t(defrecord ${1:name} [${2:fields}]\n\t ${3:protocol}\n\t ${4})\nsnippet deft\n\t(deftest ${1:name}\n\t (is (= ${2:assertion})))\n\t ${3})\nsnippet is\n\t(is (= ${1} ${2}))\nsnippet defty\n\t(deftype ${1:Name} [${2:fields}]\n\t ${3:Protocol}\n\t ${4})\nsnippet doseq\n\t(doseq [${1:elem} ${2:coll}]\n\t ${3})\nsnippet fn\n\t(fn [${1:arg-list}] ${2})\nsnippet if\n\t(if ${1:test-expr}\n\t ${2:then-expr}\n\t ${3:else-expr})\nsnippet if-let \n\t(if-let [${1:result} ${2:test-expr}]\n\t\t(${3:then-expr} $1)\n\t\t(${4:else-expr}))\nsnippet imp\n\t(:import [${1:package}])\n\t& {:keys [${1:keys}] :or {${2:defaults}}}\nsnippet let\n\t(let [${1:name} ${2:expr}]\n\t\t${3})\nsnippet letfn\n\t(letfn [(${1:name) [${2:args}]\n\t ${3})])\nsnippet map\n\t(map ${1:func} ${2:coll})\nsnippet mapl\n\t(map #(${1:lambda}) ${2:coll})\nsnippet met\n\t(${1:name} [${2:this} ${3:args}]\n\t ${4})\nsnippet ns\n\t(ns ${1:name}\n\t ${2})\nsnippet dotimes\n\t(dotimes [_ 10]\n\t (time\n\t (dotimes [_ ${1:times}]\n\t ${2})))\nsnippet pmethod\n\t(${1:name} [${2:this} ${3:args}])\nsnippet refer\n\t(:refer-clojure :exclude [${1}])\nsnippet require\n\t(:require [${1:namespace} :as [${2}]])\nsnippet use\n\t(:use [${1:namespace} :only [${2}]])\nsnippet print\n\t(println ${1})\nsnippet reduce\n\t(reduce ${1:(fn [p n] ${3})} ${2})\nsnippet when\n\t(when ${1:test} ${2:body})\nsnippet when-let\n\t(when-let [${1:result} ${2:test}]\n\t\t${3:body})\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/clojure",["require","exports","module","ace/snippets/clojure.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./clojure.snippets");
|
||||
exports.scope = "clojure";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/clojure"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/cobol.js
vendored
14
vendor/assets/javascripts/ace/snippets/cobol.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/cobol",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "cobol";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/cobol"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
114
vendor/assets/javascripts/ace/snippets/coffee.js
vendored
114
vendor/assets/javascripts/ace/snippets/coffee.js
vendored
@ -1,102 +1,16 @@
|
||||
define("ace/snippets/coffee",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Closure loop\n\
|
||||
snippet forindo\n\
|
||||
for ${1:name} in ${2:array}\n\
|
||||
do ($1) ->\n\
|
||||
${3:// body}\n\
|
||||
# Array comprehension\n\
|
||||
snippet fora\n\
|
||||
for ${1:name} in ${2:array}\n\
|
||||
${3:// body...}\n\
|
||||
# Object comprehension\n\
|
||||
snippet foro\n\
|
||||
for ${1:key}, ${2:value} of ${3:object}\n\
|
||||
${4:// body...}\n\
|
||||
# Range comprehension (inclusive)\n\
|
||||
snippet forr\n\
|
||||
for ${1:name} in [${2:start}..${3:finish}]\n\
|
||||
${4:// body...}\n\
|
||||
snippet forrb\n\
|
||||
for ${1:name} in [${2:start}..${3:finish}] by ${4:step}\n\
|
||||
${5:// body...}\n\
|
||||
# Range comprehension (exclusive)\n\
|
||||
snippet forrex\n\
|
||||
for ${1:name} in [${2:start}...${3:finish}]\n\
|
||||
${4:// body...}\n\
|
||||
snippet forrexb\n\
|
||||
for ${1:name} in [${2:start}...${3:finish}] by ${4:step}\n\
|
||||
${5:// body...}\n\
|
||||
# Function\n\
|
||||
snippet fun\n\
|
||||
(${1:args}) ->\n\
|
||||
${2:// body...}\n\
|
||||
# Function (bound)\n\
|
||||
snippet bfun\n\
|
||||
(${1:args}) =>\n\
|
||||
${2:// body...}\n\
|
||||
# Class\n\
|
||||
snippet cla class ..\n\
|
||||
class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\
|
||||
${2}\n\
|
||||
snippet cla class .. constructor: ..\n\
|
||||
class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\
|
||||
constructor: (${2:args}) ->\n\
|
||||
${3}\n\
|
||||
\n\
|
||||
${4}\n\
|
||||
snippet cla class .. extends ..\n\
|
||||
class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\
|
||||
${3}\n\
|
||||
snippet cla class .. extends .. constructor: ..\n\
|
||||
class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\
|
||||
constructor: (${3:args}) ->\n\
|
||||
${4}\n\
|
||||
\n\
|
||||
${5}\n\
|
||||
# If\n\
|
||||
snippet if\n\
|
||||
if ${1:condition}\n\
|
||||
${2:// body...}\n\
|
||||
# If __ Else\n\
|
||||
snippet ife\n\
|
||||
if ${1:condition}\n\
|
||||
${2:// body...}\n\
|
||||
else\n\
|
||||
${3:// body...}\n\
|
||||
# Else if\n\
|
||||
snippet elif\n\
|
||||
else if ${1:condition}\n\
|
||||
${2:// body...}\n\
|
||||
# Ternary If\n\
|
||||
snippet ifte\n\
|
||||
if ${1:condition} then ${2:value} else ${3:other}\n\
|
||||
# Unless\n\
|
||||
snippet unl\n\
|
||||
${1:action} unless ${2:condition}\n\
|
||||
# Switch\n\
|
||||
snippet swi\n\
|
||||
switch ${1:object}\n\
|
||||
when ${2:value}\n\
|
||||
${3:// body...}\n\
|
||||
\n\
|
||||
# Log\n\
|
||||
snippet log\n\
|
||||
console.log ${1}\n\
|
||||
# Try __ Catch\n\
|
||||
snippet try\n\
|
||||
try\n\
|
||||
${1}\n\
|
||||
catch ${2:error}\n\
|
||||
${3}\n\
|
||||
# Require\n\
|
||||
snippet req\n\
|
||||
${2:$1} = require '${1:sys}'${3}\n\
|
||||
# Export\n\
|
||||
snippet exp\n\
|
||||
${1:root} = exports ? this\n\
|
||||
";
|
||||
exports.scope = "coffee";
|
||||
define("ace/snippets/coffee.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Closure loop\nsnippet forindo\n\tfor ${1:name} in ${2:array}\n\t\tdo ($1) ->\n\t\t\t${3:// body}\n# Array comprehension\nsnippet fora\n\tfor ${1:name} in ${2:array}\n\t\t${3:// body...}\n# Object comprehension\nsnippet foro\n\tfor ${1:key}, ${2:value} of ${3:object}\n\t\t${4:// body...}\n# Range comprehension (inclusive)\nsnippet forr\n\tfor ${1:name} in [${2:start}..${3:finish}]\n\t\t${4:// body...}\nsnippet forrb\n\tfor ${1:name} in [${2:start}..${3:finish}] by ${4:step}\n\t\t${5:// body...}\n# Range comprehension (exclusive)\nsnippet forrex\n\tfor ${1:name} in [${2:start}...${3:finish}]\n\t\t${4:// body...}\nsnippet forrexb\n\tfor ${1:name} in [${2:start}...${3:finish}] by ${4:step}\n\t\t${5:// body...}\n# Function\nsnippet fun\n\t(${1:args}) ->\n\t\t${2:// body...}\n# Function (bound)\nsnippet bfun\n\t(${1:args}) =>\n\t\t${2:// body...}\n# Class\nsnippet cla class ..\n\tclass ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\t\t${2}\nsnippet cla class .. constructor: ..\n\tclass ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\t\tconstructor: (${2:args}) ->\n\t\t\t${3}\n\n\t\t${4}\nsnippet cla class .. extends ..\n\tclass ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\t\t${3}\nsnippet cla class .. extends .. constructor: ..\n\tclass ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\t\tconstructor: (${3:args}) ->\n\t\t\t${4}\n\n\t\t${5}\n# If\nsnippet if\n\tif ${1:condition}\n\t\t${2:// body...}\n# If __ Else\nsnippet ife\n\tif ${1:condition}\n\t\t${2:// body...}\n\telse\n\t\t${3:// body...}\n# Else if\nsnippet elif\n\telse if ${1:condition}\n\t\t${2:// body...}\n# Ternary If\nsnippet ifte\n\tif ${1:condition} then ${2:value} else ${3:other}\n# Unless\nsnippet unl\n\t${1:action} unless ${2:condition}\n# Switch\nsnippet swi\n\tswitch ${1:object}\n\t\twhen ${2:value}\n\t\t\t${3:// body...}\n\n# Log\nsnippet log\n\tconsole.log ${1}\n# Try __ Catch\nsnippet try\n\ttry\n\t\t${1}\n\tcatch ${2:error}\n\t\t${3}\n# Require\nsnippet req\n\t${2:$1} = require '${1:sys}'${3}\n# Export\nsnippet exp\n\t${1:root} = exports ? this\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/coffee",["require","exports","module","ace/snippets/coffee.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./coffee.snippets");
|
||||
exports.scope = "coffee";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/coffee"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/coldfusion",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "coldfusion";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/coldfusion"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/crystal.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/crystal.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/crystal"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/csharp.js
vendored
14
vendor/assets/javascripts/ace/snippets/csharp.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/csharp",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "csharp";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/csharp"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,17 +1,16 @@
|
||||
define("ace/snippets/csound_document",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# <CsoundSynthesizer>\n\
|
||||
snippet synth\n\
|
||||
<CsoundSynthesizer>\n\
|
||||
<CsInstruments>\n\
|
||||
${1}\n\
|
||||
</CsInstruments>\n\
|
||||
<CsScore>\n\
|
||||
e\n\
|
||||
</CsScore>\n\
|
||||
</CsoundSynthesizer>\n\
|
||||
";
|
||||
exports.scope = "csound_document";
|
||||
define("ace/snippets/csound_document.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# <CsoundSynthesizer>\nsnippet synth\n\t<CsoundSynthesizer>\n\t<CsInstruments>\n\t${1}\n\t</CsInstruments>\n\t<CsScore>\n\te\n\t</CsScore>\n\t</CsoundSynthesizer>\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/csound_document",["require","exports","module","ace/snippets/csound_document.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./csound_document.snippets");
|
||||
exports.scope = "csound_document";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/csound_document"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,54 +1,16 @@
|
||||
define("ace/snippets/csound_orchestra",["require","exports","module"], 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";
|
||||
define("ace/snippets/csound_orchestra.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# else\nsnippet else\n\telse\n\t\t${1:/* statements */}\n# elseif\nsnippet elseif\n\telseif ${1:/* condition */} then\n\t\t${2:/* statements */}\n# if\nsnippet if\n\tif ${1:/* condition */} then\n\t\t${2:/* statements */}\n\tendif\n# instrument block\nsnippet instr\n\tinstr ${1:name}\n\t\t${2:/* statements */}\n\tendin\n# i-time while loop\nsnippet iwhile\n\ti${1:Index} = ${2:0}\n\twhile i${1:Index} < ${3:/* count */} do\n\t\t${4:/* statements */}\n\t\ti${1:Index} += 1\n\tod\n# k-rate while loop\nsnippet kwhile\n\tk${1:Index} = ${2:0}\n\twhile k${1:Index} < ${3:/* count */} do\n\t\t${4:/* statements */}\n\t\tk${1:Index} += 1\n\tod\n# opcode\nsnippet opcode\n\topcode ${1:name}, ${2:/* output types */ 0}, ${3:/* input types */ 0}\n\t\t${4:/* statements */}\n\tendop\n# until loop\nsnippet until\n\tuntil ${1:/* condition */} do\n\t\t${2:/* statements */}\n\tod\n# while loop\nsnippet while\n\twhile ${1:/* condition */} do\n\t\t${2:/* statements */}\n\tod\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/csound_orchestra",["require","exports","module","ace/snippets/csound_orchestra.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./csound_orchestra.snippets");
|
||||
exports.scope = "csound_orchestra";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/csound_orchestra"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/csound_score",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "csound_score";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/csound_score"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/csp.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/csp.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/csp"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
986
vendor/assets/javascripts/ace/snippets/css.js
vendored
986
vendor/assets/javascripts/ace/snippets/css.js
vendored
File diff suppressed because one or more lines are too long
14
vendor/assets/javascripts/ace/snippets/curly.js
vendored
14
vendor/assets/javascripts/ace/snippets/curly.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/curly",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "curly";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/curly"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/cuttlefish.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/cuttlefish.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/cuttlefish"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/d.js
vendored
14
vendor/assets/javascripts/ace/snippets/d.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/d",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "d";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/d"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
102
vendor/assets/javascripts/ace/snippets/dart.js
vendored
102
vendor/assets/javascripts/ace/snippets/dart.js
vendored
@ -1,90 +1,16 @@
|
||||
define("ace/snippets/dart",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet lib\n\
|
||||
library ${1};\n\
|
||||
${2}\n\
|
||||
snippet im\n\
|
||||
import '${1}';\n\
|
||||
${2}\n\
|
||||
snippet pa\n\
|
||||
part '${1}';\n\
|
||||
${2}\n\
|
||||
snippet pao\n\
|
||||
part of ${1};\n\
|
||||
${2}\n\
|
||||
snippet main\n\
|
||||
void main() {\n\
|
||||
${1:/* code */}\n\
|
||||
}\n\
|
||||
snippet st\n\
|
||||
static ${1}\n\
|
||||
snippet fi\n\
|
||||
final ${1}\n\
|
||||
snippet re\n\
|
||||
return ${1}\n\
|
||||
snippet br\n\
|
||||
break;\n\
|
||||
snippet th\n\
|
||||
throw ${1}\n\
|
||||
snippet cl\n\
|
||||
class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\
|
||||
snippet imp\n\
|
||||
implements ${1}\n\
|
||||
snippet ext\n\
|
||||
extends ${1}\n\
|
||||
snippet if\n\
|
||||
if (${1:true}) {\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet ife\n\
|
||||
if (${1:true}) {\n\
|
||||
${2}\n\
|
||||
} else {\n\
|
||||
${3}\n\
|
||||
}\n\
|
||||
snippet el\n\
|
||||
else\n\
|
||||
snippet sw\n\
|
||||
switch (${1}) {\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet cs\n\
|
||||
case ${1}:\n\
|
||||
${2}\n\
|
||||
snippet de\n\
|
||||
default:\n\
|
||||
${1}\n\
|
||||
snippet for\n\
|
||||
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n\
|
||||
${4:$1[$2]}\n\
|
||||
}\n\
|
||||
snippet fore\n\
|
||||
for (final ${2:item} in ${1:itemList}) {\n\
|
||||
${3:/* code */}\n\
|
||||
}\n\
|
||||
snippet wh\n\
|
||||
while (${1:/* condition */}) {\n\
|
||||
${2:/* code */}\n\
|
||||
}\n\
|
||||
snippet dowh\n\
|
||||
do {\n\
|
||||
${2:/* code */}\n\
|
||||
} while (${1:/* condition */});\n\
|
||||
snippet as\n\
|
||||
assert(${1:/* condition */});\n\
|
||||
snippet try\n\
|
||||
try {\n\
|
||||
${2}\n\
|
||||
} catch (${1:Exception e}) {\n\
|
||||
}\n\
|
||||
snippet tryf\n\
|
||||
try {\n\
|
||||
${2}\n\
|
||||
} catch (${1:Exception e}) {\n\
|
||||
} finally {\n\
|
||||
}\n\
|
||||
";
|
||||
exports.scope = "dart";
|
||||
define("ace/snippets/dart.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet lib\n\tlibrary ${1};\n\t${2}\nsnippet im\n\timport '${1}';\n\t${2}\nsnippet pa\n\tpart '${1}';\n\t${2}\nsnippet pao\n\tpart of ${1};\n\t${2}\nsnippet main\n\tvoid main() {\n\t ${1:/* code */}\n\t}\nsnippet st\n\tstatic ${1}\nsnippet fi\n\tfinal ${1}\nsnippet re\n\treturn ${1}\nsnippet br\n\tbreak;\nsnippet th\n\tthrow ${1}\nsnippet cl\n\tclass ${1:`Filename(\"\", \"untitled\")`} ${2}\nsnippet imp\n\timplements ${1}\nsnippet ext\n\textends ${1}\nsnippet if\n\tif (${1:true}) {\n\t ${2}\n\t}\nsnippet ife\n\tif (${1:true}) {\n\t ${2}\n\t} else {\n\t ${3}\n\t}\nsnippet el\n\telse\nsnippet sw\n\tswitch (${1}) {\n\t ${2}\n\t}\nsnippet cs\n\tcase ${1}:\n\t ${2}\nsnippet de\n\tdefault:\n\t ${1}\nsnippet for\n\tfor (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n\t ${4:$1[$2]}\n\t}\nsnippet fore\n\tfor (final ${2:item} in ${1:itemList}) {\n\t ${3:/* code */}\n\t}\nsnippet wh\n\twhile (${1:/* condition */}) {\n\t ${2:/* code */}\n\t}\nsnippet dowh\n\tdo {\n\t ${2:/* code */}\n\t} while (${1:/* condition */});\nsnippet as\n\tassert(${1:/* condition */});\nsnippet try\n\ttry {\n\t ${2}\n\t} catch (${1:Exception e}) {\n\t}\nsnippet tryf\n\ttry {\n\t ${2}\n\t} catch (${1:Exception e}) {\n\t} finally {\n\t}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/dart",["require","exports","module","ace/snippets/dart.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./dart.snippets");
|
||||
exports.scope = "dart";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/dart"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
30
vendor/assets/javascripts/ace/snippets/diff.js
vendored
30
vendor/assets/javascripts/ace/snippets/diff.js
vendored
@ -1,18 +1,16 @@
|
||||
define("ace/snippets/diff",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# DEP-3 (http://dep.debian.net/deps/dep3/) style patch header\n\
|
||||
snippet header DEP-3 style header\n\
|
||||
Description: ${1}\n\
|
||||
Origin: ${2:vendor|upstream|other}, ${3:url of the original patch}\n\
|
||||
Bug: ${4:url in upstream bugtracker}\n\
|
||||
Forwarded: ${5:no|not-needed|url}\n\
|
||||
Author: ${6:`g:snips_author`}\n\
|
||||
Reviewed-by: ${7:name and email}\n\
|
||||
Last-Update: ${8:`strftime(\"%Y-%m-%d\")`}\n\
|
||||
Applied-Upstream: ${9:upstream version|url|commit}\n\
|
||||
\n\
|
||||
";
|
||||
exports.scope = "diff";
|
||||
define("ace/snippets/diff.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# DEP-3 (http://dep.debian.net/deps/dep3/) style patch header\nsnippet header DEP-3 style header\n\tDescription: ${1}\n\tOrigin: ${2:vendor|upstream|other}, ${3:url of the original patch}\n\tBug: ${4:url in upstream bugtracker}\n\tForwarded: ${5:no|not-needed|url}\n\tAuthor: ${6:`g:snips_author`}\n\tReviewed-by: ${7:name and email}\n\tLast-Update: ${8:`strftime(\"%Y-%m-%d\")`}\n\tApplied-Upstream: ${9:upstream version|url|commit}\n\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/diff",["require","exports","module","ace/snippets/diff.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./diff.snippets");
|
||||
exports.scope = "diff";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/diff"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
127
vendor/assets/javascripts/ace/snippets/django.js
vendored
127
vendor/assets/javascripts/ace/snippets/django.js
vendored
@ -1,115 +1,16 @@
|
||||
define("ace/snippets/django",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Model Fields\n\
|
||||
\n\
|
||||
# Note: Optional arguments are using defaults that match what Django will use\n\
|
||||
# as a default, e.g. with max_length fields. Doing this as a form of self\n\
|
||||
# documentation and to make it easy to know whether you should override the\n\
|
||||
# default or not.\n\
|
||||
\n\
|
||||
# Note: Optional arguments that are booleans will use the opposite since you\n\
|
||||
# can either not specify them, or override them, e.g. auto_now_add=False.\n\
|
||||
\n\
|
||||
snippet auto\n\
|
||||
${1:FIELDNAME} = models.AutoField(${2})\n\
|
||||
snippet bool\n\
|
||||
${1:FIELDNAME} = models.BooleanField(${2:default=True})\n\
|
||||
snippet char\n\
|
||||
${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True})\n\
|
||||
snippet comma\n\
|
||||
${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True})\n\
|
||||
snippet date\n\
|
||||
${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
|
||||
snippet datetime\n\
|
||||
${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
|
||||
snippet decimal\n\
|
||||
${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${3})\n\
|
||||
snippet email\n\
|
||||
${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True})\n\
|
||||
snippet file\n\
|
||||
${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100})\n\
|
||||
snippet filepath\n\
|
||||
${1:FIELDNAME} = models.FilePathField(path=${2:\"/abs/path/to/dir\"}${3:, max_length=100}${4:, match=\"*.ext\"}${5:, recursive=True}${6:, blank=True, })\n\
|
||||
snippet float\n\
|
||||
${1:FIELDNAME} = models.FloatField(${2})\n\
|
||||
snippet image\n\
|
||||
${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100})\n\
|
||||
snippet int\n\
|
||||
${1:FIELDNAME} = models.IntegerField(${2})\n\
|
||||
snippet ip\n\
|
||||
${1:FIELDNAME} = models.IPAddressField(${2})\n\
|
||||
snippet nullbool\n\
|
||||
${1:FIELDNAME} = models.NullBooleanField(${2})\n\
|
||||
snippet posint\n\
|
||||
${1:FIELDNAME} = models.PositiveIntegerField(${2})\n\
|
||||
snippet possmallint\n\
|
||||
${1:FIELDNAME} = models.PositiveSmallIntegerField(${2})\n\
|
||||
snippet slug\n\
|
||||
${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True})\n\
|
||||
snippet smallint\n\
|
||||
${1:FIELDNAME} = models.SmallIntegerField(${2})\n\
|
||||
snippet text\n\
|
||||
${1:FIELDNAME} = models.TextField(${2:blank=True})\n\
|
||||
snippet time\n\
|
||||
${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
|
||||
snippet url\n\
|
||||
${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${4:, blank=True})\n\
|
||||
snippet xml\n\
|
||||
${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${3:, blank=True})\n\
|
||||
# Relational Fields\n\
|
||||
snippet fk\n\
|
||||
${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, to_field=''})\n\
|
||||
snippet m2m\n\
|
||||
${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${7:, db_table=''})\n\
|
||||
snippet o2o\n\
|
||||
${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})\n\
|
||||
\n\
|
||||
# Code Skeletons\n\
|
||||
\n\
|
||||
snippet form\n\
|
||||
class ${1:FormName}(forms.Form):\n\
|
||||
\"\"\"${2:docstring}\"\"\"\n\
|
||||
${3}\n\
|
||||
\n\
|
||||
snippet model\n\
|
||||
class ${1:ModelName}(models.Model):\n\
|
||||
\"\"\"${2:docstring}\"\"\"\n\
|
||||
${3}\n\
|
||||
\n\
|
||||
class Meta:\n\
|
||||
${4}\n\
|
||||
\n\
|
||||
def __unicode__(self):\n\
|
||||
${5}\n\
|
||||
\n\
|
||||
def save(self, force_insert=False, force_update=False):\n\
|
||||
${6}\n\
|
||||
\n\
|
||||
@models.permalink\n\
|
||||
def get_absolute_url(self):\n\
|
||||
return ('${7:view_or_url_name}' ${8})\n\
|
||||
\n\
|
||||
snippet modeladmin\n\
|
||||
class ${1:ModelName}Admin(admin.ModelAdmin):\n\
|
||||
${2}\n\
|
||||
\n\
|
||||
admin.site.register($1, $1Admin)\n\
|
||||
\n\
|
||||
snippet tabularinline\n\
|
||||
class ${1:ModelName}Inline(admin.TabularInline):\n\
|
||||
model = $1\n\
|
||||
\n\
|
||||
snippet stackedinline\n\
|
||||
class ${1:ModelName}Inline(admin.StackedInline):\n\
|
||||
model = $1\n\
|
||||
\n\
|
||||
snippet r2r\n\
|
||||
return render_to_response('${1:template.html}', {\n\
|
||||
${2}\n\
|
||||
}${3:, context_instance=RequestContext(request)}\n\
|
||||
)\n\
|
||||
";
|
||||
exports.scope = "django";
|
||||
define("ace/snippets/django.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Model Fields\n\n# Note: Optional arguments are using defaults that match what Django will use\n# as a default, e.g. with max_length fields. Doing this as a form of self\n# documentation and to make it easy to know whether you should override the\n# default or not.\n\n# Note: Optional arguments that are booleans will use the opposite since you\n# can either not specify them, or override them, e.g. auto_now_add=False.\n\nsnippet auto\n\t${1:FIELDNAME} = models.AutoField(${2})\nsnippet bool\n\t${1:FIELDNAME} = models.BooleanField(${2:default=True})\nsnippet char\n\t${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True})\nsnippet comma\n\t${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True})\nsnippet date\n\t${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\nsnippet datetime\n\t${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\nsnippet decimal\n\t${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${3})\nsnippet email\n\t${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True})\nsnippet file\n\t${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100})\nsnippet filepath\n\t${1:FIELDNAME} = models.FilePathField(path=${2:\"/abs/path/to/dir\"}${3:, max_length=100}${4:, match=\"*.ext\"}${5:, recursive=True}${6:, blank=True, })\nsnippet float\n\t${1:FIELDNAME} = models.FloatField(${2})\nsnippet image\n\t${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100})\nsnippet int\n\t${1:FIELDNAME} = models.IntegerField(${2})\nsnippet ip\n\t${1:FIELDNAME} = models.IPAddressField(${2})\nsnippet nullbool\n\t${1:FIELDNAME} = models.NullBooleanField(${2})\nsnippet posint\n\t${1:FIELDNAME} = models.PositiveIntegerField(${2})\nsnippet possmallint\n\t${1:FIELDNAME} = models.PositiveSmallIntegerField(${2})\nsnippet slug\n\t${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True})\nsnippet smallint\n\t${1:FIELDNAME} = models.SmallIntegerField(${2})\nsnippet text\n\t${1:FIELDNAME} = models.TextField(${2:blank=True})\nsnippet time\n\t${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\nsnippet url\n\t${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${4:, blank=True})\nsnippet xml\n\t${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${3:, blank=True})\n# Relational Fields\nsnippet fk\n\t${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, to_field=''})\nsnippet m2m\n\t${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${7:, db_table=''})\nsnippet o2o\n\t${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})\n\n# Code Skeletons\n\nsnippet form\n\tclass ${1:FormName}(forms.Form):\n\t\t\"\"\"${2:docstring}\"\"\"\n\t\t${3}\n\nsnippet model\n\tclass ${1:ModelName}(models.Model):\n\t\t\"\"\"${2:docstring}\"\"\"\n\t\t${3}\n\t\t\n\t\tclass Meta:\n\t\t\t${4}\n\t\t\n\t\tdef __unicode__(self):\n\t\t\t${5}\n\t\t\n\t\tdef save(self, force_insert=False, force_update=False):\n\t\t\t${6}\n\t\t\n\t\t@models.permalink\n\t\tdef get_absolute_url(self):\n\t\t\treturn ('${7:view_or_url_name}' ${8})\n\nsnippet modeladmin\n\tclass ${1:ModelName}Admin(admin.ModelAdmin):\n\t\t${2}\n\t\n\tadmin.site.register($1, $1Admin)\n\t\nsnippet tabularinline\n\tclass ${1:ModelName}Inline(admin.TabularInline):\n\t\tmodel = $1\n\nsnippet stackedinline\n\tclass ${1:ModelName}Inline(admin.StackedInline):\n\t\tmodel = $1\n\nsnippet r2r\n\treturn render_to_response('${1:template.html}', {\n\t\t\t${2}\n\t\t}${3:, context_instance=RequestContext(request)}\n\t)\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/django",["require","exports","module","ace/snippets/django.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./django.snippets");
|
||||
exports.scope = "django";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/django"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/dockerfile",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "dockerfile";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/dockerfile"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/dot.js
vendored
14
vendor/assets/javascripts/ace/snippets/dot.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/dot",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "dot";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/dot"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
38
vendor/assets/javascripts/ace/snippets/drools.js
vendored
38
vendor/assets/javascripts/ace/snippets/drools.js
vendored
@ -1,26 +1,16 @@
|
||||
define("ace/snippets/drools",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "\n\
|
||||
snippet rule\n\
|
||||
rule \"${1?:rule_name}\"\n\
|
||||
when\n\
|
||||
${2:// when...} \n\
|
||||
then\n\
|
||||
${3:// then...}\n\
|
||||
end\n\
|
||||
\n\
|
||||
snippet query\n\
|
||||
query ${1?:query_name}\n\
|
||||
${2:// find} \n\
|
||||
end\n\
|
||||
\n\
|
||||
snippet declare\n\
|
||||
declare ${1?:type_name}\n\
|
||||
${2:// attributes} \n\
|
||||
end\n\
|
||||
\n\
|
||||
";
|
||||
exports.scope = "drools";
|
||||
define("ace/snippets/drools.snippets",["require","exports","module"], function(require, exports, module){module.exports = "\nsnippet rule\n\trule \"${1?:rule_name}\"\n\twhen\n\t\t${2:// when...} \n\tthen\n\t\t${3:// then...}\n\tend\n\nsnippet query\n\tquery ${1?:query_name}\n\t\t${2:// find} \n\tend\n\t\nsnippet declare\n\tdeclare ${1?:type_name}\n\t\t${2:// attributes} \n\tend\n\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/drools",["require","exports","module","ace/snippets/drools.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./drools.snippets");
|
||||
exports.scope = "drools";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/drools"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
16
vendor/assets/javascripts/ace/snippets/edifact.js
vendored
Normal file
16
vendor/assets/javascripts/ace/snippets/edifact.js
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
define("ace/snippets/edifact.snippets",["require","exports","module"], function(require, exports, module){module.exports = "## Access Modifiers\nsnippet u\n\tUN\nsnippet un\n\tUNB\nsnippet pr\n\tprivate\n##\n## Annotations\nsnippet before\n\t@Before\n\tstatic void ${1:intercept}(${2:args}) { ${3} }\nsnippet mm\n\t@ManyToMany\n\t${1}\nsnippet mo\n\t@ManyToOne\n\t${1}\nsnippet om\n\t@OneToMany${1:(cascade=CascadeType.ALL)}\n\t${2}\nsnippet oo\n\t@OneToOne\n\t${1}\n##\n## Basic Java packages and import\nsnippet im\n\timport\nsnippet j.b\n\tjava.beans.\nsnippet j.i\n\tjava.io.\nsnippet j.m\n\tjava.math.\nsnippet j.n\n\tjava.net.\nsnippet j.u\n\tjava.util.\n##\n## Class\nsnippet cl\n\tclass ${1:`Filename(\"\", \"untitled\")`} ${2}\nsnippet in\n\tinterface ${1:`Filename(\"\", \"untitled\")`} ${2:extends Parent}${3}\nsnippet tc\n\tpublic class ${1:`Filename()`} extends ${2:TestCase}\n##\n## Class Enhancements\nsnippet ext\n\textends \nsnippet imp\n\timplements\n##\n## Comments\nsnippet /*\n\t/*\n\t * ${1}\n\t */\n##\n## Constants\nsnippet co\n\tstatic public final ${1:String} ${2:var} = ${3};${4}\nsnippet cos\n\tstatic public final String ${1:var} = \"${2}\";${3}\n##\n## Control Statements\nsnippet case\n\tcase ${1}:\n\t\t${2}\nsnippet def\n\tdefault:\n\t\t${2}\nsnippet el\n\telse\nsnippet elif\n\telse if (${1}) ${2}\nsnippet if\n\tif (${1}) ${2}\nsnippet sw\n\tswitch (${1}) {\n\t\t${2}\n\t}\n##\n## Create a Method\nsnippet m\n\t${1:void} ${2:method}(${3}) ${4:throws }${5}\n##\n## Create a Variable\nsnippet v\n\t${1:String} ${2:var}${3: = null}${4};${5}\n##\n## Enhancements to Methods, variables, classes, etc.\nsnippet ab\n\tabstract\nsnippet fi\n\tfinal\nsnippet st\n\tstatic\nsnippet sy\n\tsynchronized\n##\n## Error Methods\nsnippet err\n\tSystem.err.print(\"${1:Message}\");\nsnippet errf\n\tSystem.err.printf(\"${1:Message}\", ${2:exception});\nsnippet errln\n\tSystem.err.println(\"${1:Message}\");\n##\n## Exception Handling\nsnippet as\n\tassert ${1:test} : \"${2:Failure message}\";${3}\nsnippet ca\n\tcatch(${1:Exception} ${2:e}) ${3}\nsnippet thr\n\tthrow\nsnippet ths\n\tthrows\nsnippet try\n\ttry {\n\t\t${3}\n\t} catch(${1:Exception} ${2:e}) {\n\t}\nsnippet tryf\n\ttry {\n\t\t${3}\n\t} catch(${1:Exception} ${2:e}) {\n\t} finally {\n\t}\n##\n## Find Methods\nsnippet findall\n\tList<${1:listName}> ${2:items} = ${1}.findAll();${3}\nsnippet findbyid\n\t${1:var} ${2:item} = ${1}.findById(${3});${4}\n##\n## Javadocs\nsnippet /**\n\t/**\n\t * ${1}\n\t */\nsnippet @au\n\t@author `system(\"grep \\`id -un\\` /etc/passwd | cut -d \\\":\\\" -f5 | cut -d \\\",\\\" -f1\")`\nsnippet @br\n\t@brief ${1:Description}\nsnippet @fi\n\t@file ${1:`Filename()`}.java\nsnippet @pa\n\t@param ${1:param}\nsnippet @re\n\t@return ${1:param}\n##\n## Logger Methods\nsnippet debug\n\tLogger.debug(${1:param});${2}\nsnippet error\n\tLogger.error(${1:param});${2}\nsnippet info\n\tLogger.info(${1:param});${2}\nsnippet warn\n\tLogger.warn(${1:param});${2}\n##\n## Loops\nsnippet enfor\n\tfor (${1} : ${2}) ${3}\nsnippet for\n\tfor (${1}; ${2}; ${3}) ${4}\nsnippet wh\n\twhile (${1}) ${2}\n##\n## Main method\nsnippet main\n\tpublic static void main (String[] args) {\n\t\t${1:/* code */}\n\t}\n##\n## Print Methods\nsnippet print\n\tSystem.out.print(\"${1:Message}\");\nsnippet printf\n\tSystem.out.printf(\"${1:Message}\", ${2:args});\nsnippet println\n\tSystem.out.println(${1});\n##\n## Render Methods\nsnippet ren\n\trender(${1:param});${2}\nsnippet rena\n\trenderArgs.put(\"${1}\", ${2});${3}\nsnippet renb\n\trenderBinary(${1:param});${2}\nsnippet renj\n\trenderJSON(${1:param});${2}\nsnippet renx\n\trenderXml(${1:param});${2}\n##\n## Setter and Getter Methods\nsnippet set\n\t${1:public} void set${3:}(${2:String} ${4:}){\n\t\tthis.$4 = $4;\n\t}\nsnippet get\n\t${1:public} ${2:String} get${3:}(){\n\t\treturn this.${4:};\n\t}\n##\n## Terminate Methods or Loops\nsnippet re\n\treturn\nsnippet br\n\tbreak;\n##\n## Test Methods\nsnippet t\n\tpublic void test${1:Name}() throws Exception {\n\t\t${2}\n\t}\nsnippet test\n\t@Test\n\tpublic void test${1:Name}() throws Exception {\n\t\t${2}\n\t}\n##\n## Utils\nsnippet Sc\n\tScanner\n##\n## Miscellaneous\nsnippet action\n\tpublic static void ${1:index}(${2:args}) { ${3} }\nsnippet rnf\n\tnotFound(${1:param});${2}\nsnippet rnfin\n\tnotFoundIfNull(${1:param});${2}\nsnippet rr\n\tredirect(${1:param});${2}\nsnippet ru\n\tunauthorized(${1:param});${2}\nsnippet unless\n\t(unless=${1:param});${2}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/edifact",["require","exports","module","ace/snippets/edifact.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./edifact.snippets");
|
||||
exports.scope = "edifact";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/edifact"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/eiffel.js
vendored
14
vendor/assets/javascripts/ace/snippets/eiffel.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/eiffel",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "eiffel";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/eiffel"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/ejs.js
vendored
14
vendor/assets/javascripts/ace/snippets/ejs.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/ejs",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "ejs";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/ejs"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/elixir.js
vendored
14
vendor/assets/javascripts/ace/snippets/elixir.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/elixir",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/elixir"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/elm.js
vendored
14
vendor/assets/javascripts/ace/snippets/elm.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/elm",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "elm";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/elm"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
179
vendor/assets/javascripts/ace/snippets/erlang.js
vendored
179
vendor/assets/javascripts/ace/snippets/erlang.js
vendored
@ -1,167 +1,16 @@
|
||||
define("ace/snippets/erlang",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# module and export all\n\
|
||||
snippet mod\n\
|
||||
-module(${1:`Filename('', 'my')`}).\n\
|
||||
\n\
|
||||
-compile([export_all]).\n\
|
||||
\n\
|
||||
start() ->\n\
|
||||
${2}\n\
|
||||
\n\
|
||||
stop() ->\n\
|
||||
ok.\n\
|
||||
# define directive\n\
|
||||
snippet def\n\
|
||||
-define(${1:macro}, ${2:body}).${3}\n\
|
||||
# export directive\n\
|
||||
snippet exp\n\
|
||||
-export([${1:function}/${2:arity}]).\n\
|
||||
# include directive\n\
|
||||
snippet inc\n\
|
||||
-include(\"${1:file}\").${2}\n\
|
||||
# behavior directive\n\
|
||||
snippet beh\n\
|
||||
-behaviour(${1:behaviour}).${2}\n\
|
||||
# if expression\n\
|
||||
snippet if\n\
|
||||
if\n\
|
||||
${1:guard} ->\n\
|
||||
${2:body}\n\
|
||||
end\n\
|
||||
# case expression\n\
|
||||
snippet case\n\
|
||||
case ${1:expression} of\n\
|
||||
${2:pattern} ->\n\
|
||||
${3:body};\n\
|
||||
end\n\
|
||||
# anonymous function\n\
|
||||
snippet fun\n\
|
||||
fun (${1:Parameters}) -> ${2:body} end${3}\n\
|
||||
# try...catch\n\
|
||||
snippet try\n\
|
||||
try\n\
|
||||
${1}\n\
|
||||
catch\n\
|
||||
${2:_:_} -> ${3:got_some_exception}\n\
|
||||
end\n\
|
||||
# record directive\n\
|
||||
snippet rec\n\
|
||||
-record(${1:record}, {\n\
|
||||
${2:field}=${3:value}}).${4}\n\
|
||||
# todo comment\n\
|
||||
snippet todo\n\
|
||||
%% TODO: ${1}\n\
|
||||
## Snippets below (starting with '%') are in EDoc format.\n\
|
||||
## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details\n\
|
||||
# doc comment\n\
|
||||
snippet %d\n\
|
||||
%% @doc ${1}\n\
|
||||
# end of doc comment\n\
|
||||
snippet %e\n\
|
||||
%% @end\n\
|
||||
# specification comment\n\
|
||||
snippet %s\n\
|
||||
%% @spec ${1}\n\
|
||||
# private function marker\n\
|
||||
snippet %p\n\
|
||||
%% @private\n\
|
||||
# OTP application\n\
|
||||
snippet application\n\
|
||||
-module(${1:`Filename('', 'my')`}).\n\
|
||||
\n\
|
||||
-behaviour(application).\n\
|
||||
\n\
|
||||
-export([start/2, stop/1]).\n\
|
||||
\n\
|
||||
start(_Type, _StartArgs) ->\n\
|
||||
case ${2:root_supervisor}:start_link() of\n\
|
||||
{ok, Pid} ->\n\
|
||||
{ok, Pid};\n\
|
||||
Other ->\n\
|
||||
{error, Other}\n\
|
||||
end.\n\
|
||||
\n\
|
||||
stop(_State) ->\n\
|
||||
ok. \n\
|
||||
# OTP supervisor\n\
|
||||
snippet supervisor\n\
|
||||
-module(${1:`Filename('', 'my')`}).\n\
|
||||
\n\
|
||||
-behaviour(supervisor).\n\
|
||||
\n\
|
||||
%% API\n\
|
||||
-export([start_link/0]).\n\
|
||||
\n\
|
||||
%% Supervisor callbacks\n\
|
||||
-export([init/1]).\n\
|
||||
\n\
|
||||
-define(SERVER, ?MODULE).\n\
|
||||
\n\
|
||||
start_link() ->\n\
|
||||
supervisor:start_link({local, ?SERVER}, ?MODULE, []).\n\
|
||||
\n\
|
||||
init([]) ->\n\
|
||||
Server = {${2:my_server}, {$2, start_link, []},\n\
|
||||
permanent, 2000, worker, [$2]},\n\
|
||||
Children = [Server],\n\
|
||||
RestartStrategy = {one_for_one, 0, 1},\n\
|
||||
{ok, {RestartStrategy, Children}}.\n\
|
||||
# OTP gen_server\n\
|
||||
snippet gen_server\n\
|
||||
-module(${1:`Filename('', 'my')`}).\n\
|
||||
\n\
|
||||
-behaviour(gen_server).\n\
|
||||
\n\
|
||||
%% API\n\
|
||||
-export([\n\
|
||||
start_link/0\n\
|
||||
]).\n\
|
||||
\n\
|
||||
%% gen_server callbacks\n\
|
||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,\n\
|
||||
terminate/2, code_change/3]).\n\
|
||||
\n\
|
||||
-define(SERVER, ?MODULE).\n\
|
||||
\n\
|
||||
-record(state, {}).\n\
|
||||
\n\
|
||||
%%%===================================================================\n\
|
||||
%%% API\n\
|
||||
%%%===================================================================\n\
|
||||
\n\
|
||||
start_link() ->\n\
|
||||
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).\n\
|
||||
\n\
|
||||
%%%===================================================================\n\
|
||||
%%% gen_server callbacks\n\
|
||||
%%%===================================================================\n\
|
||||
\n\
|
||||
init([]) ->\n\
|
||||
{ok, #state{}}.\n\
|
||||
\n\
|
||||
handle_call(_Request, _From, State) ->\n\
|
||||
Reply = ok,\n\
|
||||
{reply, Reply, State}.\n\
|
||||
\n\
|
||||
handle_cast(_Msg, State) ->\n\
|
||||
{noreply, State}.\n\
|
||||
\n\
|
||||
handle_info(_Info, State) ->\n\
|
||||
{noreply, State}.\n\
|
||||
\n\
|
||||
terminate(_Reason, _State) ->\n\
|
||||
ok.\n\
|
||||
\n\
|
||||
code_change(_OldVsn, State, _Extra) ->\n\
|
||||
{ok, State}.\n\
|
||||
\n\
|
||||
%%%===================================================================\n\
|
||||
%%% Internal functions\n\
|
||||
%%%===================================================================\n\
|
||||
\n\
|
||||
";
|
||||
exports.scope = "erlang";
|
||||
define("ace/snippets/erlang.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# module and export all\nsnippet mod\n\t-module(${1:`Filename('', 'my')`}).\n\t\n\t-compile([export_all]).\n\t\n\tstart() ->\n\t ${2}\n\t\n\tstop() ->\n\t ok.\n# define directive\nsnippet def\n\t-define(${1:macro}, ${2:body}).${3}\n# export directive\nsnippet exp\n\t-export([${1:function}/${2:arity}]).\n# include directive\nsnippet inc\n\t-include(\"${1:file}\").${2}\n# behavior directive\nsnippet beh\n\t-behaviour(${1:behaviour}).${2}\n# if expression\nsnippet if\n\tif\n\t ${1:guard} ->\n\t ${2:body}\n\tend\n# case expression\nsnippet case\n\tcase ${1:expression} of\n\t ${2:pattern} ->\n\t ${3:body};\n\tend\n# anonymous function\nsnippet fun\n\tfun (${1:Parameters}) -> ${2:body} end${3}\n# try...catch\nsnippet try\n\ttry\n\t ${1}\n\tcatch\n\t ${2:_:_} -> ${3:got_some_exception}\n\tend\n# record directive\nsnippet rec\n\t-record(${1:record}, {\n\t ${2:field}=${3:value}}).${4}\n# todo comment\nsnippet todo\n\t%% TODO: ${1}\n## Snippets below (starting with '%') are in EDoc format.\n## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details\n# doc comment\nsnippet %d\n\t%% @doc ${1}\n# end of doc comment\nsnippet %e\n\t%% @end\n# specification comment\nsnippet %s\n\t%% @spec ${1}\n# private function marker\nsnippet %p\n\t%% @private\n# OTP application\nsnippet application\n\t-module(${1:`Filename('', 'my')`}).\n\n\t-behaviour(application).\n\n\t-export([start/2, stop/1]).\n\n\tstart(_Type, _StartArgs) ->\n\t case ${2:root_supervisor}:start_link() of\n\t {ok, Pid} ->\n\t {ok, Pid};\n\t Other ->\n\t\t {error, Other}\n\t end.\n\n\tstop(_State) ->\n\t ok.\t\n# OTP supervisor\nsnippet supervisor\n\t-module(${1:`Filename('', 'my')`}).\n\n\t-behaviour(supervisor).\n\n\t%% API\n\t-export([start_link/0]).\n\n\t%% Supervisor callbacks\n\t-export([init/1]).\n\n\t-define(SERVER, ?MODULE).\n\n\tstart_link() ->\n\t supervisor:start_link({local, ?SERVER}, ?MODULE, []).\n\n\tinit([]) ->\n\t Server = {${2:my_server}, {$2, start_link, []},\n\t permanent, 2000, worker, [$2]},\n\t Children = [Server],\n\t RestartStrategy = {one_for_one, 0, 1},\n\t {ok, {RestartStrategy, Children}}.\n# OTP gen_server\nsnippet gen_server\n\t-module(${1:`Filename('', 'my')`}).\n\n\t-behaviour(gen_server).\n\n\t%% API\n\t-export([\n\t start_link/0\n\t ]).\n\n\t%% gen_server callbacks\n\t-export([init/1, handle_call/3, handle_cast/2, handle_info/2,\n\t terminate/2, code_change/3]).\n\n\t-define(SERVER, ?MODULE).\n\n\t-record(state, {}).\n\n\t%%%===================================================================\n\t%%% API\n\t%%%===================================================================\n\n\tstart_link() ->\n\t gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).\n\n\t%%%===================================================================\n\t%%% gen_server callbacks\n\t%%%===================================================================\n\n\tinit([]) ->\n\t {ok, #state{}}.\n\n\thandle_call(_Request, _From, State) ->\n\t Reply = ok,\n\t {reply, Reply, State}.\n\n\thandle_cast(_Msg, State) ->\n\t {noreply, State}.\n\n\thandle_info(_Info, State) ->\n\t {noreply, State}.\n\n\tterminate(_Reason, _State) ->\n\t ok.\n\n\tcode_change(_OldVsn, State, _Extra) ->\n\t {ok, State}.\n\n\t%%%===================================================================\n\t%%% Internal functions\n\t%%%===================================================================\n\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/erlang",["require","exports","module","ace/snippets/erlang.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./erlang.snippets");
|
||||
exports.scope = "erlang";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/erlang"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/flix.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/flix.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/flix"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/forth.js
vendored
14
vendor/assets/javascripts/ace/snippets/forth.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/forth",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "forth";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/forth"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/fortran",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "fortran";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/fortran"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/fsharp.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/fsharp.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/fsharp"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
16
vendor/assets/javascripts/ace/snippets/fsl.js
vendored
Normal file
16
vendor/assets/javascripts/ace/snippets/fsl.js
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
define("ace/snippets/fsl.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet header\n\tmachine_name : \"\";\n\tmachine_author : \"\";\n\tmachine_license : MIT;\n\tmachine_comment : \"\";\n\tmachine_language : en;\n\tmachine_version : 1.0.0;\n\tfsl_version : 1.0.0;\n\tstart_states : [];\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/fsl",["require","exports","module","ace/snippets/fsl.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./fsl.snippets");
|
||||
exports.scope = "fsl";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/fsl"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/ftl.js
vendored
14
vendor/assets/javascripts/ace/snippets/ftl.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/ftl",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "ftl";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/ftl"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/gcode.js
vendored
14
vendor/assets/javascripts/ace/snippets/gcode.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/gcode",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "gcode";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/gcode"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/gherkin",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "gherkin";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/gherkin"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/gitignore",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "gitignore";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/gitignore"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/glsl.js
vendored
14
vendor/assets/javascripts/ace/snippets/glsl.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/glsl",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "glsl";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/glsl"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
File diff suppressed because one or more lines are too long
14
vendor/assets/javascripts/ace/snippets/golang.js
vendored
14
vendor/assets/javascripts/ace/snippets/golang.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/golang",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "golang";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/golang"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,39 +1,16 @@
|
||||
define("ace/snippets/graphqlschema",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Type Snippet\n\
|
||||
trigger type\n\
|
||||
snippet type\n\
|
||||
type ${1:type_name} {\n\
|
||||
${2:type_siblings}\n\
|
||||
}\n\
|
||||
\n\
|
||||
# Input Snippet\n\
|
||||
trigger input\n\
|
||||
snippet input\n\
|
||||
input ${1:input_name} {\n\
|
||||
${2:input_siblings}\n\
|
||||
}\n\
|
||||
\n\
|
||||
# Interface Snippet\n\
|
||||
trigger interface\n\
|
||||
snippet interface\n\
|
||||
interface ${1:interface_name} {\n\
|
||||
${2:interface_siblings}\n\
|
||||
}\n\
|
||||
\n\
|
||||
# Interface Snippet\n\
|
||||
trigger union\n\
|
||||
snippet union\n\
|
||||
union ${1:union_name} = ${2:type} | ${3: type}\n\
|
||||
\n\
|
||||
# Enum Snippet\n\
|
||||
trigger enum\n\
|
||||
snippet enum\n\
|
||||
enum ${1:enum_name} {\n\
|
||||
${2:enum_siblings}\n\
|
||||
}\n\
|
||||
";
|
||||
exports.scope = "graphqlschema";
|
||||
define("ace/snippets/graphqlschema.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Type Snippet\ntrigger type\nsnippet type\n\ttype ${1:type_name} {\n\t\t${2:type_siblings}\n\t}\n\n# Input Snippet\ntrigger input\nsnippet input\n\tinput ${1:input_name} {\n\t\t${2:input_siblings}\n\t}\n\n# Interface Snippet\ntrigger interface\nsnippet interface\n\tinterface ${1:interface_name} {\n\t\t${2:interface_siblings}\n\t}\n\n# Interface Snippet\ntrigger union\nsnippet union\n\tunion ${1:union_name} = ${2:type} | ${3: type}\n\n# Enum Snippet\ntrigger enum\nsnippet enum\n\tenum ${1:enum_name} {\n\t\t${2:enum_siblings}\n\t}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/graphqlschema",["require","exports","module","ace/snippets/graphqlschema.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./graphqlschema.snippets");
|
||||
exports.scope = "graphqlschema";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/graphqlschema"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/groovy.js
vendored
14
vendor/assets/javascripts/ace/snippets/groovy.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/groovy",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "groovy";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/groovy"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
39
vendor/assets/javascripts/ace/snippets/haml.js
vendored
39
vendor/assets/javascripts/ace/snippets/haml.js
vendored
@ -1,27 +1,16 @@
|
||||
define("ace/snippets/haml",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet t\n\
|
||||
%table\n\
|
||||
%tr\n\
|
||||
%th\n\
|
||||
${1:headers}\n\
|
||||
%tr\n\
|
||||
%td\n\
|
||||
${2:headers}\n\
|
||||
snippet ul\n\
|
||||
%ul\n\
|
||||
%li\n\
|
||||
${1:item}\n\
|
||||
%li\n\
|
||||
snippet =rp\n\
|
||||
= render :partial => '${1:partial}'\n\
|
||||
snippet =rpl\n\
|
||||
= render :partial => '${1:partial}', :locals => {}\n\
|
||||
snippet =rpc\n\
|
||||
= render :partial => '${1:partial}', :collection => @$1\n\
|
||||
\n\
|
||||
";
|
||||
exports.scope = "haml";
|
||||
define("ace/snippets/haml.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet t\n\t%table\n\t\t%tr\n\t\t\t%th\n\t\t\t\t${1:headers}\n\t\t%tr\n\t\t\t%td\n\t\t\t\t${2:headers}\nsnippet ul\n\t%ul\n\t\t%li\n\t\t\t${1:item}\n\t\t%li\nsnippet =rp\n\t= render :partial => '${1:partial}'\nsnippet =rpl\n\t= render :partial => '${1:partial}', :locals => {}\nsnippet =rpc\n\t= render :partial => '${1:partial}', :collection => @$1\n\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/haml",["require","exports","module","ace/snippets/haml.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./haml.snippets");
|
||||
exports.scope = "haml";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/haml"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/handlebars",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "handlebars";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/handlebars"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
101
vendor/assets/javascripts/ace/snippets/haskell.js
vendored
101
vendor/assets/javascripts/ace/snippets/haskell.js
vendored
@ -1,89 +1,16 @@
|
||||
define("ace/snippets/haskell",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet lang\n\
|
||||
{-# LANGUAGE ${1:OverloadedStrings} #-}\n\
|
||||
snippet info\n\
|
||||
-- |\n\
|
||||
-- Module : ${1:Module.Namespace}\n\
|
||||
-- Copyright : ${2:Author} ${3:2011-2012}\n\
|
||||
-- License : ${4:BSD3}\n\
|
||||
--\n\
|
||||
-- Maintainer : ${5:email@something.com}\n\
|
||||
-- Stability : ${6:experimental}\n\
|
||||
-- Portability : ${7:unknown}\n\
|
||||
--\n\
|
||||
-- ${8:Description}\n\
|
||||
--\n\
|
||||
snippet import\n\
|
||||
import ${1:Data.Text}\n\
|
||||
snippet import2\n\
|
||||
import ${1:Data.Text} (${2:head})\n\
|
||||
snippet importq\n\
|
||||
import qualified ${1:Data.Text} as ${2:T}\n\
|
||||
snippet inst\n\
|
||||
instance ${1:Monoid} ${2:Type} where\n\
|
||||
${3}\n\
|
||||
snippet type\n\
|
||||
type ${1:Type} = ${2:Type}\n\
|
||||
snippet data\n\
|
||||
data ${1:Type} = ${2:$1} ${3:Int}\n\
|
||||
snippet newtype\n\
|
||||
newtype ${1:Type} = ${2:$1} ${3:Int}\n\
|
||||
snippet class\n\
|
||||
class ${1:Class} a where\n\
|
||||
${2}\n\
|
||||
snippet module\n\
|
||||
module `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\
|
||||
) where\n\
|
||||
`expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\
|
||||
\n\
|
||||
snippet const\n\
|
||||
${1:name} :: ${2:a}\n\
|
||||
$1 = ${3:undefined}\n\
|
||||
snippet fn\n\
|
||||
${1:fn} :: ${2:a} -> ${3:a}\n\
|
||||
$1 ${4} = ${5:undefined}\n\
|
||||
snippet fn2\n\
|
||||
${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\
|
||||
$1 ${5} = ${6:undefined}\n\
|
||||
snippet ap\n\
|
||||
${1:map} ${2:fn} ${3:list}\n\
|
||||
snippet do\n\
|
||||
do\n\
|
||||
\n\
|
||||
snippet λ\n\
|
||||
\\${1:x} -> ${2}\n\
|
||||
snippet \\\n\
|
||||
\\${1:x} -> ${2}\n\
|
||||
snippet <-\n\
|
||||
${1:a} <- ${2:m a}\n\
|
||||
snippet ←\n\
|
||||
${1:a} <- ${2:m a}\n\
|
||||
snippet ->\n\
|
||||
${1:m a} -> ${2:a}\n\
|
||||
snippet →\n\
|
||||
${1:m a} -> ${2:a}\n\
|
||||
snippet tup\n\
|
||||
(${1:a}, ${2:b})\n\
|
||||
snippet tup2\n\
|
||||
(${1:a}, ${2:b}, ${3:c})\n\
|
||||
snippet tup3\n\
|
||||
(${1:a}, ${2:b}, ${3:c}, ${4:d})\n\
|
||||
snippet rec\n\
|
||||
${1:Record} { ${2:recFieldA} = ${3:undefined}\n\
|
||||
, ${4:recFieldB} = ${5:undefined}\n\
|
||||
}\n\
|
||||
snippet case\n\
|
||||
case ${1:something} of\n\
|
||||
${2} -> ${3}\n\
|
||||
snippet let\n\
|
||||
let ${1} = ${2}\n\
|
||||
in ${3}\n\
|
||||
snippet where\n\
|
||||
where\n\
|
||||
${1:fn} = ${2:undefined}\n\
|
||||
";
|
||||
exports.scope = "haskell";
|
||||
define("ace/snippets/haskell.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet lang\n\t{-# LANGUAGE ${1:OverloadedStrings} #-}\nsnippet info\n\t-- |\n\t-- Module : ${1:Module.Namespace}\n\t-- Copyright : ${2:Author} ${3:2011-2012}\n\t-- License : ${4:BSD3}\n\t--\n\t-- Maintainer : ${5:email@something.com}\n\t-- Stability : ${6:experimental}\n\t-- Portability : ${7:unknown}\n\t--\n\t-- ${8:Description}\n\t--\nsnippet import\n\timport ${1:Data.Text}\nsnippet import2\n\timport ${1:Data.Text} (${2:head})\nsnippet importq\n\timport qualified ${1:Data.Text} as ${2:T}\nsnippet inst\n\tinstance ${1:Monoid} ${2:Type} where\n\t\t${3}\nsnippet type\n\ttype ${1:Type} = ${2:Type}\nsnippet data\n\tdata ${1:Type} = ${2:$1} ${3:Int}\nsnippet newtype\n\tnewtype ${1:Type} = ${2:$1} ${3:Int}\nsnippet class\n\tclass ${1:Class} a where\n\t\t${2}\nsnippet module\n\tmodule `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\t)\twhere\n\t`expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\nsnippet const\n\t${1:name} :: ${2:a}\n\t$1 = ${3:undefined}\nsnippet fn\n\t${1:fn} :: ${2:a} -> ${3:a}\n\t$1 ${4} = ${5:undefined}\nsnippet fn2\n\t${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\t$1 ${5} = ${6:undefined}\nsnippet ap\n\t${1:map} ${2:fn} ${3:list}\nsnippet do\n\tdo\n\t\t\nsnippet \u03BB\n\t\\${1:x} -> ${2}\nsnippet \\\n\t\\${1:x} -> ${2}\nsnippet <-\n\t${1:a} <- ${2:m a}\nsnippet \u2190\n\t${1:a} <- ${2:m a}\nsnippet ->\n\t${1:m a} -> ${2:a}\nsnippet \u2192\n\t${1:m a} -> ${2:a}\nsnippet tup\n\t(${1:a}, ${2:b})\nsnippet tup2\n\t(${1:a}, ${2:b}, ${3:c})\nsnippet tup3\n\t(${1:a}, ${2:b}, ${3:c}, ${4:d})\nsnippet rec\n\t${1:Record} { ${2:recFieldA} = ${3:undefined}\n\t\t\t\t, ${4:recFieldB} = ${5:undefined}\n\t\t\t\t}\nsnippet case\n\tcase ${1:something} of\n\t\t${2} -> ${3}\nsnippet let\n\tlet ${1} = ${2}\n\tin ${3}\nsnippet where\n\twhere\n\t\t${1:fn} = ${2:undefined}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/haskell",["require","exports","module","ace/snippets/haskell.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./haskell.snippets");
|
||||
exports.scope = "haskell";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/haskell"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/haskell_cabal",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "haskell_cabal";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/haskell_cabal"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/haxe.js
vendored
14
vendor/assets/javascripts/ace/snippets/haxe.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/haxe",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "haxe";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/haxe"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/hjson.js
vendored
14
vendor/assets/javascripts/ace/snippets/hjson.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/hjson",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/hjson"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
874
vendor/assets/javascripts/ace/snippets/html.js
vendored
874
vendor/assets/javascripts/ace/snippets/html.js
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/html_elixir",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "html_elixir";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/html_elixir"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/html_ruby",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "html_ruby";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/html_ruby"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/ini.js
vendored
14
vendor/assets/javascripts/ace/snippets/ini.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/ini",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "ini";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/ini"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
13
vendor/assets/javascripts/ace/snippets/io.js
vendored
13
vendor/assets/javascripts/ace/snippets/io.js
vendored
@ -1,6 +1,4 @@
|
||||
define("ace/snippets/io",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
define("ace/snippets/io",["require","exports","module"], function(require, exports, module){"use strict";
|
||||
exports.snippets = [
|
||||
{
|
||||
"content": "assertEquals(${1:expected}, ${2:expr})",
|
||||
@ -66,4 +64,11 @@ exports.snippets = [
|
||||
];
|
||||
exports.scope = "io";
|
||||
|
||||
});
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/io"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/ion.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/ion.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/ion"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/jack.js
vendored
14
vendor/assets/javascripts/ace/snippets/jack.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/jack",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "jack";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/jack"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/jade.js
vendored
14
vendor/assets/javascripts/ace/snippets/jade.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/jade",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "jade";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/jade"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
259
vendor/assets/javascripts/ace/snippets/java.js
vendored
259
vendor/assets/javascripts/ace/snippets/java.js
vendored
@ -1,247 +1,16 @@
|
||||
define("ace/snippets/java",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "## Access Modifiers\n\
|
||||
snippet po\n\
|
||||
protected\n\
|
||||
snippet pu\n\
|
||||
public\n\
|
||||
snippet pr\n\
|
||||
private\n\
|
||||
##\n\
|
||||
## Annotations\n\
|
||||
snippet before\n\
|
||||
@Before\n\
|
||||
static void ${1:intercept}(${2:args}) { ${3} }\n\
|
||||
snippet mm\n\
|
||||
@ManyToMany\n\
|
||||
${1}\n\
|
||||
snippet mo\n\
|
||||
@ManyToOne\n\
|
||||
${1}\n\
|
||||
snippet om\n\
|
||||
@OneToMany${1:(cascade=CascadeType.ALL)}\n\
|
||||
${2}\n\
|
||||
snippet oo\n\
|
||||
@OneToOne\n\
|
||||
${1}\n\
|
||||
##\n\
|
||||
## Basic Java packages and import\n\
|
||||
snippet im\n\
|
||||
import\n\
|
||||
snippet j.b\n\
|
||||
java.beans.\n\
|
||||
snippet j.i\n\
|
||||
java.io.\n\
|
||||
snippet j.m\n\
|
||||
java.math.\n\
|
||||
snippet j.n\n\
|
||||
java.net.\n\
|
||||
snippet j.u\n\
|
||||
java.util.\n\
|
||||
##\n\
|
||||
## Class\n\
|
||||
snippet cl\n\
|
||||
class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\
|
||||
snippet in\n\
|
||||
interface ${1:`Filename(\"\", \"untitled\")`} ${2:extends Parent}${3}\n\
|
||||
snippet tc\n\
|
||||
public class ${1:`Filename()`} extends ${2:TestCase}\n\
|
||||
##\n\
|
||||
## Class Enhancements\n\
|
||||
snippet ext\n\
|
||||
extends \n\
|
||||
snippet imp\n\
|
||||
implements\n\
|
||||
##\n\
|
||||
## Comments\n\
|
||||
snippet /*\n\
|
||||
/*\n\
|
||||
* ${1}\n\
|
||||
*/\n\
|
||||
##\n\
|
||||
## Constants\n\
|
||||
snippet co\n\
|
||||
static public final ${1:String} ${2:var} = ${3};${4}\n\
|
||||
snippet cos\n\
|
||||
static public final String ${1:var} = \"${2}\";${3}\n\
|
||||
##\n\
|
||||
## Control Statements\n\
|
||||
snippet case\n\
|
||||
case ${1}:\n\
|
||||
${2}\n\
|
||||
snippet def\n\
|
||||
default:\n\
|
||||
${2}\n\
|
||||
snippet el\n\
|
||||
else\n\
|
||||
snippet elif\n\
|
||||
else if (${1}) ${2}\n\
|
||||
snippet if\n\
|
||||
if (${1}) ${2}\n\
|
||||
snippet sw\n\
|
||||
switch (${1}) {\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
##\n\
|
||||
## Create a Method\n\
|
||||
snippet m\n\
|
||||
${1:void} ${2:method}(${3}) ${4:throws }${5}\n\
|
||||
##\n\
|
||||
## Create a Variable\n\
|
||||
snippet v\n\
|
||||
${1:String} ${2:var}${3: = null}${4};${5}\n\
|
||||
##\n\
|
||||
## Enhancements to Methods, variables, classes, etc.\n\
|
||||
snippet ab\n\
|
||||
abstract\n\
|
||||
snippet fi\n\
|
||||
final\n\
|
||||
snippet st\n\
|
||||
static\n\
|
||||
snippet sy\n\
|
||||
synchronized\n\
|
||||
##\n\
|
||||
## Error Methods\n\
|
||||
snippet err\n\
|
||||
System.err.print(\"${1:Message}\");\n\
|
||||
snippet errf\n\
|
||||
System.err.printf(\"${1:Message}\", ${2:exception});\n\
|
||||
snippet errln\n\
|
||||
System.err.println(\"${1:Message}\");\n\
|
||||
##\n\
|
||||
## Exception Handling\n\
|
||||
snippet as\n\
|
||||
assert ${1:test} : \"${2:Failure message}\";${3}\n\
|
||||
snippet ca\n\
|
||||
catch(${1:Exception} ${2:e}) ${3}\n\
|
||||
snippet thr\n\
|
||||
throw\n\
|
||||
snippet ths\n\
|
||||
throws\n\
|
||||
snippet try\n\
|
||||
try {\n\
|
||||
${3}\n\
|
||||
} catch(${1:Exception} ${2:e}) {\n\
|
||||
}\n\
|
||||
snippet tryf\n\
|
||||
try {\n\
|
||||
${3}\n\
|
||||
} catch(${1:Exception} ${2:e}) {\n\
|
||||
} finally {\n\
|
||||
}\n\
|
||||
##\n\
|
||||
## Find Methods\n\
|
||||
snippet findall\n\
|
||||
List<${1:listName}> ${2:items} = ${1}.findAll();${3}\n\
|
||||
snippet findbyid\n\
|
||||
${1:var} ${2:item} = ${1}.findById(${3});${4}\n\
|
||||
##\n\
|
||||
## Javadocs\n\
|
||||
snippet /**\n\
|
||||
/**\n\
|
||||
* ${1}\n\
|
||||
*/\n\
|
||||
snippet @au\n\
|
||||
@author `system(\"grep \\`id -un\\` /etc/passwd | cut -d \\\":\\\" -f5 | cut -d \\\",\\\" -f1\")`\n\
|
||||
snippet @br\n\
|
||||
@brief ${1:Description}\n\
|
||||
snippet @fi\n\
|
||||
@file ${1:`Filename()`}.java\n\
|
||||
snippet @pa\n\
|
||||
@param ${1:param}\n\
|
||||
snippet @re\n\
|
||||
@return ${1:param}\n\
|
||||
##\n\
|
||||
## Logger Methods\n\
|
||||
snippet debug\n\
|
||||
Logger.debug(${1:param});${2}\n\
|
||||
snippet error\n\
|
||||
Logger.error(${1:param});${2}\n\
|
||||
snippet info\n\
|
||||
Logger.info(${1:param});${2}\n\
|
||||
snippet warn\n\
|
||||
Logger.warn(${1:param});${2}\n\
|
||||
##\n\
|
||||
## Loops\n\
|
||||
snippet enfor\n\
|
||||
for (${1} : ${2}) ${3}\n\
|
||||
snippet for\n\
|
||||
for (${1}; ${2}; ${3}) ${4}\n\
|
||||
snippet wh\n\
|
||||
while (${1}) ${2}\n\
|
||||
##\n\
|
||||
## Main method\n\
|
||||
snippet main\n\
|
||||
public static void main (String[] args) {\n\
|
||||
${1:/* code */}\n\
|
||||
}\n\
|
||||
##\n\
|
||||
## Print Methods\n\
|
||||
snippet print\n\
|
||||
System.out.print(\"${1:Message}\");\n\
|
||||
snippet printf\n\
|
||||
System.out.printf(\"${1:Message}\", ${2:args});\n\
|
||||
snippet println\n\
|
||||
System.out.println(${1});\n\
|
||||
##\n\
|
||||
## Render Methods\n\
|
||||
snippet ren\n\
|
||||
render(${1:param});${2}\n\
|
||||
snippet rena\n\
|
||||
renderArgs.put(\"${1}\", ${2});${3}\n\
|
||||
snippet renb\n\
|
||||
renderBinary(${1:param});${2}\n\
|
||||
snippet renj\n\
|
||||
renderJSON(${1:param});${2}\n\
|
||||
snippet renx\n\
|
||||
renderXml(${1:param});${2}\n\
|
||||
##\n\
|
||||
## Setter and Getter Methods\n\
|
||||
snippet set\n\
|
||||
${1:public} void set${3:}(${2:String} ${4:}){\n\
|
||||
this.$4 = $4;\n\
|
||||
}\n\
|
||||
snippet get\n\
|
||||
${1:public} ${2:String} get${3:}(){\n\
|
||||
return this.${4:};\n\
|
||||
}\n\
|
||||
##\n\
|
||||
## Terminate Methods or Loops\n\
|
||||
snippet re\n\
|
||||
return\n\
|
||||
snippet br\n\
|
||||
break;\n\
|
||||
##\n\
|
||||
## Test Methods\n\
|
||||
snippet t\n\
|
||||
public void test${1:Name}() throws Exception {\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet test\n\
|
||||
@Test\n\
|
||||
public void test${1:Name}() throws Exception {\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
##\n\
|
||||
## Utils\n\
|
||||
snippet Sc\n\
|
||||
Scanner\n\
|
||||
##\n\
|
||||
## Miscellaneous\n\
|
||||
snippet action\n\
|
||||
public static void ${1:index}(${2:args}) { ${3} }\n\
|
||||
snippet rnf\n\
|
||||
notFound(${1:param});${2}\n\
|
||||
snippet rnfin\n\
|
||||
notFoundIfNull(${1:param});${2}\n\
|
||||
snippet rr\n\
|
||||
redirect(${1:param});${2}\n\
|
||||
snippet ru\n\
|
||||
unauthorized(${1:param});${2}\n\
|
||||
snippet unless\n\
|
||||
(unless=${1:param});${2}\n\
|
||||
";
|
||||
exports.scope = "java";
|
||||
define("ace/snippets/java.snippets",["require","exports","module"], function(require, exports, module){module.exports = "## Access Modifiers\nsnippet po\n\tprotected\nsnippet pu\n\tpublic\nsnippet pr\n\tprivate\n##\n## Annotations\nsnippet before\n\t@Before\n\tstatic void ${1:intercept}(${2:args}) { ${3} }\nsnippet mm\n\t@ManyToMany\n\t${1}\nsnippet mo\n\t@ManyToOne\n\t${1}\nsnippet om\n\t@OneToMany${1:(cascade=CascadeType.ALL)}\n\t${2}\nsnippet oo\n\t@OneToOne\n\t${1}\n##\n## Basic Java packages and import\nsnippet im\n\timport\nsnippet j.b\n\tjava.beans.\nsnippet j.i\n\tjava.io.\nsnippet j.m\n\tjava.math.\nsnippet j.n\n\tjava.net.\nsnippet j.u\n\tjava.util.\n##\n## Class\nsnippet cl\n\tclass ${1:`Filename(\"\", \"untitled\")`} ${2}\nsnippet in\n\tinterface ${1:`Filename(\"\", \"untitled\")`} ${2:extends Parent}${3}\nsnippet tc\n\tpublic class ${1:`Filename()`} extends ${2:TestCase}\n##\n## Class Enhancements\nsnippet ext\n\textends \nsnippet imp\n\timplements\n##\n## Comments\nsnippet /*\n\t/*\n\t * ${1}\n\t */\n##\n## Constants\nsnippet co\n\tstatic public final ${1:String} ${2:var} = ${3};${4}\nsnippet cos\n\tstatic public final String ${1:var} = \"${2}\";${3}\n##\n## Control Statements\nsnippet case\n\tcase ${1}:\n\t\t${2}\nsnippet def\n\tdefault:\n\t\t${2}\nsnippet el\n\telse\nsnippet elif\n\telse if (${1}) ${2}\nsnippet if\n\tif (${1}) ${2}\nsnippet sw\n\tswitch (${1}) {\n\t\t${2}\n\t}\n##\n## Create a Method\nsnippet m\n\t${1:void} ${2:method}(${3}) ${4:throws }${5}\n##\n## Create a Variable\nsnippet v\n\t${1:String} ${2:var}${3: = null}${4};${5}\n##\n## Enhancements to Methods, variables, classes, etc.\nsnippet ab\n\tabstract\nsnippet fi\n\tfinal\nsnippet st\n\tstatic\nsnippet sy\n\tsynchronized\n##\n## Error Methods\nsnippet err\n\tSystem.err.print(\"${1:Message}\");\nsnippet errf\n\tSystem.err.printf(\"${1:Message}\", ${2:exception});\nsnippet errln\n\tSystem.err.println(\"${1:Message}\");\n##\n## Exception Handling\nsnippet as\n\tassert ${1:test} : \"${2:Failure message}\";${3}\nsnippet ca\n\tcatch(${1:Exception} ${2:e}) ${3}\nsnippet thr\n\tthrow\nsnippet ths\n\tthrows\nsnippet try\n\ttry {\n\t\t${3}\n\t} catch(${1:Exception} ${2:e}) {\n\t}\nsnippet tryf\n\ttry {\n\t\t${3}\n\t} catch(${1:Exception} ${2:e}) {\n\t} finally {\n\t}\n##\n## Find Methods\nsnippet findall\n\tList<${1:listName}> ${2:items} = ${1}.findAll();${3}\nsnippet findbyid\n\t${1:var} ${2:item} = ${1}.findById(${3});${4}\n##\n## Javadocs\nsnippet /**\n\t/**\n\t * ${1}\n\t */\nsnippet @au\n\t@author `system(\"grep \\`id -un\\` /etc/passwd | cut -d \\\":\\\" -f5 | cut -d \\\",\\\" -f1\")`\nsnippet @br\n\t@brief ${1:Description}\nsnippet @fi\n\t@file ${1:`Filename()`}.java\nsnippet @pa\n\t@param ${1:param}\nsnippet @re\n\t@return ${1:param}\n##\n## Logger Methods\nsnippet debug\n\tLogger.debug(${1:param});${2}\nsnippet error\n\tLogger.error(${1:param});${2}\nsnippet info\n\tLogger.info(${1:param});${2}\nsnippet warn\n\tLogger.warn(${1:param});${2}\n##\n## Loops\nsnippet enfor\n\tfor (${1} : ${2}) ${3}\nsnippet for\n\tfor (${1}; ${2}; ${3}) ${4}\nsnippet wh\n\twhile (${1}) ${2}\n##\n## Main method\nsnippet main\n\tpublic static void main (String[] args) {\n\t\t${1:/* code */}\n\t}\n##\n## Print Methods\nsnippet print\n\tSystem.out.print(\"${1:Message}\");\nsnippet printf\n\tSystem.out.printf(\"${1:Message}\", ${2:args});\nsnippet println\n\tSystem.out.println(${1});\n##\n## Render Methods\nsnippet ren\n\trender(${1:param});${2}\nsnippet rena\n\trenderArgs.put(\"${1}\", ${2});${3}\nsnippet renb\n\trenderBinary(${1:param});${2}\nsnippet renj\n\trenderJSON(${1:param});${2}\nsnippet renx\n\trenderXml(${1:param});${2}\n##\n## Setter and Getter Methods\nsnippet set\n\t${1:public} void set${3:}(${2:String} ${4:}){\n\t\tthis.$4 = $4;\n\t}\nsnippet get\n\t${1:public} ${2:String} get${3:}(){\n\t\treturn this.${4:};\n\t}\n##\n## Terminate Methods or Loops\nsnippet re\n\treturn\nsnippet br\n\tbreak;\n##\n## Test Methods\nsnippet t\n\tpublic void test${1:Name}() throws Exception {\n\t\t${2}\n\t}\nsnippet test\n\t@Test\n\tpublic void test${1:Name}() throws Exception {\n\t\t${2}\n\t}\n##\n## Utils\nsnippet Sc\n\tScanner\n##\n## Miscellaneous\nsnippet action\n\tpublic static void ${1:index}(${2:args}) { ${3} }\nsnippet rnf\n\tnotFound(${1:param});${2}\nsnippet rnfin\n\tnotFoundIfNull(${1:param});${2}\nsnippet rr\n\tredirect(${1:param});${2}\nsnippet ru\n\tunauthorized(${1:param});${2}\nsnippet unless\n\t(unless=${1:param});${2}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/java",["require","exports","module","ace/snippets/java.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./java.snippets");
|
||||
exports.scope = "java";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/java"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
214
vendor/assets/javascripts/ace/snippets/javascript.js
vendored
214
vendor/assets/javascripts/ace/snippets/javascript.js
vendored
@ -1,202 +1,16 @@
|
||||
define("ace/snippets/javascript",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Prototype\n\
|
||||
snippet proto\n\
|
||||
${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\
|
||||
${4:// body...}\n\
|
||||
};\n\
|
||||
# Function\n\
|
||||
snippet fun\n\
|
||||
function ${1?:function_name}(${2:argument}) {\n\
|
||||
${3:// body...}\n\
|
||||
}\n\
|
||||
# Anonymous Function\n\
|
||||
regex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\n\
|
||||
snippet f\n\
|
||||
function${M1?: ${1:functionName}}($2) {\n\
|
||||
${0:$TM_SELECTED_TEXT}\n\
|
||||
}${M2?;}${M3?,}${M4?)}\n\
|
||||
# Immediate function\n\
|
||||
trigger \\(?f\\(\n\
|
||||
endTrigger \\)?\n\
|
||||
snippet f(\n\
|
||||
(function(${1}) {\n\
|
||||
${0:${TM_SELECTED_TEXT:/* code */}}\n\
|
||||
}(${1}));\n\
|
||||
# if\n\
|
||||
snippet if\n\
|
||||
if (${1:true}) {\n\
|
||||
${0}\n\
|
||||
}\n\
|
||||
# if ... else\n\
|
||||
snippet ife\n\
|
||||
if (${1:true}) {\n\
|
||||
${2}\n\
|
||||
} else {\n\
|
||||
${0}\n\
|
||||
}\n\
|
||||
# tertiary conditional\n\
|
||||
snippet ter\n\
|
||||
${1:/* condition */} ? ${2:a} : ${3:b}\n\
|
||||
# switch\n\
|
||||
snippet switch\n\
|
||||
switch (${1:expression}) {\n\
|
||||
case '${3:case}':\n\
|
||||
${4:// code}\n\
|
||||
break;\n\
|
||||
${5}\n\
|
||||
default:\n\
|
||||
${2:// code}\n\
|
||||
}\n\
|
||||
# case\n\
|
||||
snippet case\n\
|
||||
case '${1:case}':\n\
|
||||
${2:// code}\n\
|
||||
break;\n\
|
||||
${3}\n\
|
||||
\n\
|
||||
# while (...) {...}\n\
|
||||
snippet wh\n\
|
||||
while (${1:/* condition */}) {\n\
|
||||
${0:/* code */}\n\
|
||||
}\n\
|
||||
# try\n\
|
||||
snippet try\n\
|
||||
try {\n\
|
||||
${0:/* code */}\n\
|
||||
} catch (e) {}\n\
|
||||
# do...while\n\
|
||||
snippet do\n\
|
||||
do {\n\
|
||||
${2:/* code */}\n\
|
||||
} while (${1:/* condition */});\n\
|
||||
# Object Method\n\
|
||||
snippet :f\n\
|
||||
regex /([,{[])|^\\s*/:f/\n\
|
||||
${1:method_name}: function(${2:attribute}) {\n\
|
||||
${0}\n\
|
||||
}${3:,}\n\
|
||||
# setTimeout function\n\
|
||||
snippet setTimeout\n\
|
||||
regex /\\b/st|timeout|setTimeo?u?t?/\n\
|
||||
setTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n\
|
||||
# Get Elements\n\
|
||||
snippet gett\n\
|
||||
getElementsBy${1:TagName}('${2}')${3}\n\
|
||||
# Get Element\n\
|
||||
snippet get\n\
|
||||
getElementBy${1:Id}('${2}')${3}\n\
|
||||
# console.log (Firebug)\n\
|
||||
snippet cl\n\
|
||||
console.log(${1});\n\
|
||||
# return\n\
|
||||
snippet ret\n\
|
||||
return ${1:result}\n\
|
||||
# for (property in object ) { ... }\n\
|
||||
snippet fori\n\
|
||||
for (var ${1:prop} in ${2:Things}) {\n\
|
||||
${0:$2[$1]}\n\
|
||||
}\n\
|
||||
# hasOwnProperty\n\
|
||||
snippet has\n\
|
||||
hasOwnProperty(${1})\n\
|
||||
# docstring\n\
|
||||
snippet /**\n\
|
||||
/**\n\
|
||||
* ${1:description}\n\
|
||||
*\n\
|
||||
*/\n\
|
||||
snippet @par\n\
|
||||
regex /^\\s*\\*\\s*/@(para?m?)?/\n\
|
||||
@param {${1:type}} ${2:name} ${3:description}\n\
|
||||
snippet @ret\n\
|
||||
@return {${1:type}} ${2:description}\n\
|
||||
# JSON.parse\n\
|
||||
snippet jsonp\n\
|
||||
JSON.parse(${1:jstr});\n\
|
||||
# JSON.stringify\n\
|
||||
snippet jsons\n\
|
||||
JSON.stringify(${1:object});\n\
|
||||
# self-defining function\n\
|
||||
snippet sdf\n\
|
||||
var ${1:function_name} = function(${2:argument}) {\n\
|
||||
${3:// initial code ...}\n\
|
||||
\n\
|
||||
$1 = function($2) {\n\
|
||||
${4:// main code}\n\
|
||||
};\n\
|
||||
}\n\
|
||||
# singleton\n\
|
||||
snippet sing\n\
|
||||
function ${1:Singleton} (${2:argument}) {\n\
|
||||
// the cached instance\n\
|
||||
var instance;\n\
|
||||
\n\
|
||||
// rewrite the constructor\n\
|
||||
$1 = function $1($2) {\n\
|
||||
return instance;\n\
|
||||
};\n\
|
||||
\n\
|
||||
// carry over the prototype properties\n\
|
||||
$1.prototype = this;\n\
|
||||
\n\
|
||||
// the instance\n\
|
||||
instance = new $1();\n\
|
||||
\n\
|
||||
// reset the constructor pointer\n\
|
||||
instance.constructor = $1;\n\
|
||||
\n\
|
||||
${3:// code ...}\n\
|
||||
\n\
|
||||
return instance;\n\
|
||||
}\n\
|
||||
# class\n\
|
||||
snippet class\n\
|
||||
regex /^\\s*/clas{0,2}/\n\
|
||||
var ${1:class} = function(${20}) {\n\
|
||||
$40$0\n\
|
||||
};\n\
|
||||
\n\
|
||||
(function() {\n\
|
||||
${60:this.prop = \"\"}\n\
|
||||
}).call(${1:class}.prototype);\n\
|
||||
\n\
|
||||
exports.${1:class} = ${1:class};\n\
|
||||
# \n\
|
||||
snippet for-\n\
|
||||
for (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\
|
||||
${0:${2:Things}[${1:i}];}\n\
|
||||
}\n\
|
||||
# for (...) {...}\n\
|
||||
snippet for\n\
|
||||
for (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\
|
||||
${3:$2[$1]}$0\n\
|
||||
}\n\
|
||||
# for (...) {...} (Improved Native For-Loop)\n\
|
||||
snippet forr\n\
|
||||
for (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\
|
||||
${3:$2[$1]}$0\n\
|
||||
}\n\
|
||||
\n\
|
||||
\n\
|
||||
#modules\n\
|
||||
snippet def\n\
|
||||
define(function(require, exports, module) {\n\
|
||||
\"use strict\";\n\
|
||||
var ${1/.*\\///} = require(\"${1}\");\n\
|
||||
\n\
|
||||
$TM_SELECTED_TEXT\n\
|
||||
});\n\
|
||||
snippet req\n\
|
||||
guard ^\\s*\n\
|
||||
var ${1/.*\\///} = require(\"${1}\");\n\
|
||||
$0\n\
|
||||
snippet requ\n\
|
||||
guard ^\\s*\n\
|
||||
var ${1/.*\\/(.)/\\u$1/} = require(\"${1}\").${1/.*\\/(.)/\\u$1/};\n\
|
||||
$0\n\
|
||||
";
|
||||
exports.scope = "javascript";
|
||||
define("ace/snippets/javascript.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Prototype\nsnippet proto\n\t${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\t\t${4:// body...}\n\t};\n# Function\nsnippet fun\n\tfunction ${1?:function_name}(${2:argument}) {\n\t\t${3:// body...}\n\t}\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n\tfunction${M1?: ${1:functionName}}($2) {\n\t\t${0:$TM_SELECTED_TEXT}\n\t}${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n\t(function(${1}) {\n\t\t${0:${TM_SELECTED_TEXT:/* code */}}\n\t}(${1}));\n# if\nsnippet if\n\tif (${1:true}) {\n\t\t${0}\n\t}\n# if ... else\nsnippet ife\n\tif (${1:true}) {\n\t\t${2}\n\t} else {\n\t\t${0}\n\t}\n# tertiary conditional\nsnippet ter\n\t${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n\tswitch (${1:expression}) {\n\t\tcase '${3:case}':\n\t\t\t${4:// code}\n\t\t\tbreak;\n\t\t${5}\n\t\tdefault:\n\t\t\t${2:// code}\n\t}\n# case\nsnippet case\n\tcase '${1:case}':\n\t\t${2:// code}\n\t\tbreak;\n\t${3}\n\n# while (...) {...}\nsnippet wh\n\twhile (${1:/* condition */}) {\n\t\t${0:/* code */}\n\t}\n# try\nsnippet try\n\ttry {\n\t\t${0:/* code */}\n\t} catch (e) {}\n# do...while\nsnippet do\n\tdo {\n\t\t${2:/* code */}\n\t} while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n\t${1:method_name}: function(${2:attribute}) {\n\t\t${0}\n\t}${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n\tsetTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n\tgetElementsBy${1:TagName}('${2}')${3}\n# Get Element\nsnippet get\n\tgetElementBy${1:Id}('${2}')${3}\n# console.log (Firebug)\nsnippet cl\n\tconsole.log(${1});\n# return\nsnippet ret\n\treturn ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n\tfor (var ${1:prop} in ${2:Things}) {\n\t\t${0:$2[$1]}\n\t}\n# hasOwnProperty\nsnippet has\n\thasOwnProperty(${1})\n# docstring\nsnippet /**\n\t/**\n\t * ${1:description}\n\t *\n\t */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n\t@param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n\t@return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n\tJSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n\tJSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n\tvar ${1:function_name} = function(${2:argument}) {\n\t\t${3:// initial code ...}\n\n\t\t$1 = function($2) {\n\t\t\t${4:// main code}\n\t\t};\n\t}\n# singleton\nsnippet sing\n\tfunction ${1:Singleton} (${2:argument}) {\n\t\t// the cached instance\n\t\tvar instance;\n\n\t\t// rewrite the constructor\n\t\t$1 = function $1($2) {\n\t\t\treturn instance;\n\t\t};\n\t\t\n\t\t// carry over the prototype properties\n\t\t$1.prototype = this;\n\n\t\t// the instance\n\t\tinstance = new $1();\n\n\t\t// reset the constructor pointer\n\t\tinstance.constructor = $1;\n\n\t\t${3:// code ...}\n\n\t\treturn instance;\n\t}\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n\tvar ${1:class} = function(${20}) {\n\t\t$40$0\n\t};\n\t\n\t(function() {\n\t\t${60:this.prop = \"\"}\n\t}).call(${1:class}.prototype);\n\t\n\texports.${1:class} = ${1:class};\n# \nsnippet for-\n\tfor (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\t\t${0:${2:Things}[${1:i}];}\n\t}\n# for (...) {...}\nsnippet for\n\tfor (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\t\t${3:$2[$1]}$0\n\t}\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n\tfor (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\t\t${3:$2[$1]}$0\n\t}\n\n\n#modules\nsnippet def\n\tdefine(function(require, exports, module) {\n\t\"use strict\";\n\tvar ${1/.*\\///} = require(\"${1}\");\n\t\n\t$TM_SELECTED_TEXT\n\t});\nsnippet req\nguard ^\\s*\n\tvar ${1/.*\\///} = require(\"${1}\");\n\t$0\nsnippet requ\nguard ^\\s*\n\tvar ${1/.*\\/(.)/\\u$1/} = require(\"${1}\").${1/.*\\/(.)/\\u$1/};\n\t$0\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/javascript",["require","exports","module","ace/snippets/javascript.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./javascript.snippets");
|
||||
exports.scope = "javascript";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/javascript"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/jexl.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/jexl.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/jexl"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/json.js
vendored
14
vendor/assets/javascripts/ace/snippets/json.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/json",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "json";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/json"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/json5.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/json5.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/json5"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
94
vendor/assets/javascripts/ace/snippets/jsoniq.js
vendored
94
vendor/assets/javascripts/ace/snippets/jsoniq.js
vendored
@ -1,68 +1,78 @@
|
||||
define("ace/snippets/jsoniq",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet for\n\
|
||||
for $${1:item} in ${2:expr}\n\
|
||||
define("ace/snippets/jsoniq.snippets",["require","exports","module"], function(require, exports, module) {module.exports = 'snippet for\n\
|
||||
for \$\${1:item} in \${2:expr}\n\
|
||||
snippet return\n\
|
||||
return ${1:expr}\n\
|
||||
return \${1:expr}\n\
|
||||
snippet import\n\
|
||||
import module namespace ${1:ns} = \"${2:http://www.example.com/}\";\n\
|
||||
import module namespace \${1:ns} = "\${2:http://www.example.com/}";\n\
|
||||
snippet some\n\
|
||||
some $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
|
||||
some \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\
|
||||
snippet every\n\
|
||||
every $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
|
||||
every \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\
|
||||
snippet if\n\
|
||||
if(${1:true}) then ${2:expr} else ${3:true}\n\
|
||||
if(\${1:true}) then \${2:expr} else \${3:true}\n\
|
||||
snippet switch\n\
|
||||
switch(${1:\"foo\"})\n\
|
||||
case ${2:\"foo\"}\n\
|
||||
return ${3:true}\n\
|
||||
default return ${4:false}\n\
|
||||
switch(\${1:"foo"})\n\
|
||||
case \${2:"foo"}\n\
|
||||
return \${3:true}\n\
|
||||
default return \${4:false}\n\
|
||||
snippet try\n\
|
||||
try { ${1:expr} } catch ${2:*} { ${3:expr} }\n\
|
||||
try { \${1:expr} } catch \${2:*} { \${3:expr} }\n\
|
||||
snippet tumbling\n\
|
||||
for tumbling window $${1:varname} in ${2:expr}\n\
|
||||
start at $${3:start} when ${4:expr}\n\
|
||||
end at $${5:end} when ${6:expr}\n\
|
||||
return ${7:expr}\n\
|
||||
for tumbling window \$\${1:varname} in \${2:expr}\n\
|
||||
start at \$\${3:start} when \${4:expr}\n\
|
||||
end at \$\${5:end} when \${6:expr}\n\
|
||||
return \${7:expr}\n\
|
||||
snippet sliding\n\
|
||||
for sliding window $${1:varname} in ${2:expr}\n\
|
||||
start at $${3:start} when ${4:expr}\n\
|
||||
end at $${5:end} when ${6:expr}\n\
|
||||
return ${7:expr}\n\
|
||||
for sliding window \$\${1:varname} in \${2:expr}\n\
|
||||
start at \$\${3:start} when \${4:expr}\n\
|
||||
end at \$\${5:end} when \${6:expr}\n\
|
||||
return \${7:expr}\n\
|
||||
snippet let\n\
|
||||
let $${1:varname} := ${2:expr}\n\
|
||||
let \$\${1:varname} := \${2:expr}\n\
|
||||
snippet group\n\
|
||||
group by $${1:varname} := ${2:expr}\n\
|
||||
group by \$\${1:varname} := \${2:expr}\n\
|
||||
snippet order\n\
|
||||
order by ${1:expr} ${2:descending}\n\
|
||||
order by \${1:expr} \${2:descending}\n\
|
||||
snippet stable\n\
|
||||
stable order by ${1:expr}\n\
|
||||
stable order by \${1:expr}\n\
|
||||
snippet count\n\
|
||||
count $${1:varname}\n\
|
||||
count \$\${1:varname}\n\
|
||||
snippet ordered\n\
|
||||
ordered { ${1:expr} }\n\
|
||||
ordered { \${1:expr} }\n\
|
||||
snippet unordered\n\
|
||||
unordered { ${1:expr} }\n\
|
||||
unordered { \${1:expr} }\n\
|
||||
snippet treat \n\
|
||||
treat as ${1:expr}\n\
|
||||
treat as \${1:expr}\n\
|
||||
snippet castable\n\
|
||||
castable as ${1:atomicType}\n\
|
||||
castable as \${1:atomicType}\n\
|
||||
snippet cast\n\
|
||||
cast as ${1:atomicType}\n\
|
||||
cast as \${1:atomicType}\n\
|
||||
snippet typeswitch\n\
|
||||
typeswitch(${1:expr})\n\
|
||||
case ${2:type} return ${3:expr}\n\
|
||||
default return ${4:expr}\n\
|
||||
typeswitch(\${1:expr})\n\
|
||||
case \${2:type} return \${3:expr}\n\
|
||||
default return \${4:expr}\n\
|
||||
snippet var\n\
|
||||
declare variable $${1:varname} := ${2:expr};\n\
|
||||
declare variable \$\${1:varname} := \${2:expr};\n\
|
||||
snippet fn\n\
|
||||
declare function ${1:ns}:${2:name}(){\n\
|
||||
${3:expr}\n\
|
||||
declare function \${1:ns}:\${2:name}(){\n\
|
||||
\${3:expr}\n\
|
||||
};\n\
|
||||
snippet module\n\
|
||||
module namespace ${1:ns} = \"${2:http://www.example.com}\";\n\
|
||||
";
|
||||
exports.scope = "jsoniq";
|
||||
module namespace \${1:ns} = "\${2:http://www.example.com}";\n\
|
||||
';
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/jsoniq",["require","exports","module","ace/snippets/jsoniq.snippets"], function(require, exports, module) {"use strict";
|
||||
|
||||
exports.snippetText = require("./jsoniq.snippets");
|
||||
exports.scope = "jsoniq";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/jsoniq"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
118
vendor/assets/javascripts/ace/snippets/jsp.js
vendored
118
vendor/assets/javascripts/ace/snippets/jsp.js
vendored
@ -1,106 +1,16 @@
|
||||
define("ace/snippets/jsp",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet @page\n\
|
||||
<%@page contentType=\"text/html\" pageEncoding=\"UTF-8\"%>\n\
|
||||
snippet jstl\n\
|
||||
<%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\
|
||||
<%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\
|
||||
snippet jstl:c\n\
|
||||
<%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\
|
||||
snippet jstl:fn\n\
|
||||
<%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\
|
||||
snippet cpath\n\
|
||||
${pageContext.request.contextPath}\n\
|
||||
snippet cout\n\
|
||||
<c:out value=\"${1}\" default=\"${2}\" />\n\
|
||||
snippet cset\n\
|
||||
<c:set var=\"${1}\" value=\"${2}\" />\n\
|
||||
snippet cremove\n\
|
||||
<c:remove var=\"${1}\" scope=\"${2:page}\" />\n\
|
||||
snippet ccatch\n\
|
||||
<c:catch var=\"${1}\" />\n\
|
||||
snippet cif\n\
|
||||
<c:if test=\"${${1}}\">\n\
|
||||
${2}\n\
|
||||
</c:if>\n\
|
||||
snippet cchoose\n\
|
||||
<c:choose>\n\
|
||||
${1}\n\
|
||||
</c:choose>\n\
|
||||
snippet cwhen\n\
|
||||
<c:when test=\"${${1}}\">\n\
|
||||
${2}\n\
|
||||
</c:when>\n\
|
||||
snippet cother\n\
|
||||
<c:otherwise>\n\
|
||||
${1}\n\
|
||||
</c:otherwise>\n\
|
||||
snippet cfore\n\
|
||||
<c:forEach items=\"${${1}}\" var=\"${2}\" varStatus=\"${3}\">\n\
|
||||
${4:<c:out value=\"$2\" />}\n\
|
||||
</c:forEach>\n\
|
||||
snippet cfort\n\
|
||||
<c:set var=\"${1}\">${2:item1,item2,item3}</c:set>\n\
|
||||
<c:forTokens var=\"${3}\" items=\"${$1}\" delims=\"${4:,}\">\n\
|
||||
${5:<c:out value=\"$3\" />}\n\
|
||||
</c:forTokens>\n\
|
||||
snippet cparam\n\
|
||||
<c:param name=\"${1}\" value=\"${2}\" />\n\
|
||||
snippet cparam+\n\
|
||||
<c:param name=\"${1}\" value=\"${2}\" />\n\
|
||||
cparam+${3}\n\
|
||||
snippet cimport\n\
|
||||
<c:import url=\"${1}\" />\n\
|
||||
snippet cimport+\n\
|
||||
<c:import url=\"${1}\">\n\
|
||||
<c:param name=\"${2}\" value=\"${3}\" />\n\
|
||||
cparam+${4}\n\
|
||||
</c:import>\n\
|
||||
snippet curl\n\
|
||||
<c:url value=\"${1}\" var=\"${2}\" />\n\
|
||||
<a href=\"${$2}\">${3}</a>\n\
|
||||
snippet curl+\n\
|
||||
<c:url value=\"${1}\" var=\"${2}\">\n\
|
||||
<c:param name=\"${4}\" value=\"${5}\" />\n\
|
||||
cparam+${6}\n\
|
||||
</c:url>\n\
|
||||
<a href=\"${$2}\">${3}</a>\n\
|
||||
snippet credirect\n\
|
||||
<c:redirect url=\"${1}\" />\n\
|
||||
snippet contains\n\
|
||||
${fn:contains(${1:string}, ${2:substr})}\n\
|
||||
snippet contains:i\n\
|
||||
${fn:containsIgnoreCase(${1:string}, ${2:substr})}\n\
|
||||
snippet endswith\n\
|
||||
${fn:endsWith(${1:string}, ${2:suffix})}\n\
|
||||
snippet escape\n\
|
||||
${fn:escapeXml(${1:string})}\n\
|
||||
snippet indexof\n\
|
||||
${fn:indexOf(${1:string}, ${2:substr})}\n\
|
||||
snippet join\n\
|
||||
${fn:join(${1:collection}, ${2:delims})}\n\
|
||||
snippet length\n\
|
||||
${fn:length(${1:collection_or_string})}\n\
|
||||
snippet replace\n\
|
||||
${fn:replace(${1:string}, ${2:substr}, ${3:replace})}\n\
|
||||
snippet split\n\
|
||||
${fn:split(${1:string}, ${2:delims})}\n\
|
||||
snippet startswith\n\
|
||||
${fn:startsWith(${1:string}, ${2:prefix})}\n\
|
||||
snippet substr\n\
|
||||
${fn:substring(${1:string}, ${2:begin}, ${3:end})}\n\
|
||||
snippet substr:a\n\
|
||||
${fn:substringAfter(${1:string}, ${2:substr})}\n\
|
||||
snippet substr:b\n\
|
||||
${fn:substringBefore(${1:string}, ${2:substr})}\n\
|
||||
snippet lc\n\
|
||||
${fn:toLowerCase(${1:string})}\n\
|
||||
snippet uc\n\
|
||||
${fn:toUpperCase(${1:string})}\n\
|
||||
snippet trim\n\
|
||||
${fn:trim(${1:string})}\n\
|
||||
";
|
||||
exports.scope = "jsp";
|
||||
define("ace/snippets/jsp.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet @page\n\t<%@page contentType=\"text/html\" pageEncoding=\"UTF-8\"%>\nsnippet jstl\n\t<%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\t<%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\nsnippet jstl:c\n\t<%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\nsnippet jstl:fn\n\t<%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\nsnippet cpath\n\t${pageContext.request.contextPath}\nsnippet cout\n\t<c:out value=\"${1}\" default=\"${2}\" />\nsnippet cset\n\t<c:set var=\"${1}\" value=\"${2}\" />\nsnippet cremove\n\t<c:remove var=\"${1}\" scope=\"${2:page}\" />\nsnippet ccatch\n\t<c:catch var=\"${1}\" />\nsnippet cif\n\t<c:if test=\"${${1}}\">\n\t\t${2}\n\t</c:if>\nsnippet cchoose\n\t<c:choose>\n\t\t${1}\n\t</c:choose>\nsnippet cwhen\n\t<c:when test=\"${${1}}\">\n\t\t${2}\n\t</c:when>\nsnippet cother\n\t<c:otherwise>\n\t\t${1}\n\t</c:otherwise>\nsnippet cfore\n\t<c:forEach items=\"${${1}}\" var=\"${2}\" varStatus=\"${3}\">\n\t\t${4:<c:out value=\"$2\" />}\n\t</c:forEach>\nsnippet cfort\n\t<c:set var=\"${1}\">${2:item1,item2,item3}</c:set>\n\t<c:forTokens var=\"${3}\" items=\"${$1}\" delims=\"${4:,}\">\n\t\t${5:<c:out value=\"$3\" />}\n\t</c:forTokens>\nsnippet cparam\n\t<c:param name=\"${1}\" value=\"${2}\" />\nsnippet cparam+\n\t<c:param name=\"${1}\" value=\"${2}\" />\n\tcparam+${3}\nsnippet cimport\n\t<c:import url=\"${1}\" />\nsnippet cimport+\n\t<c:import url=\"${1}\">\n\t\t<c:param name=\"${2}\" value=\"${3}\" />\n\t\tcparam+${4}\n\t</c:import>\nsnippet curl\n\t<c:url value=\"${1}\" var=\"${2}\" />\n\t<a href=\"${$2}\">${3}</a>\nsnippet curl+\n\t<c:url value=\"${1}\" var=\"${2}\">\n\t\t<c:param name=\"${4}\" value=\"${5}\" />\n\t\tcparam+${6}\n\t</c:url>\n\t<a href=\"${$2}\">${3}</a>\nsnippet credirect\n\t<c:redirect url=\"${1}\" />\nsnippet contains\n\t${fn:contains(${1:string}, ${2:substr})}\nsnippet contains:i\n\t${fn:containsIgnoreCase(${1:string}, ${2:substr})}\nsnippet endswith\n\t${fn:endsWith(${1:string}, ${2:suffix})}\nsnippet escape\n\t${fn:escapeXml(${1:string})}\nsnippet indexof\n\t${fn:indexOf(${1:string}, ${2:substr})}\nsnippet join\n\t${fn:join(${1:collection}, ${2:delims})}\nsnippet length\n\t${fn:length(${1:collection_or_string})}\nsnippet replace\n\t${fn:replace(${1:string}, ${2:substr}, ${3:replace})}\nsnippet split\n\t${fn:split(${1:string}, ${2:delims})}\nsnippet startswith\n\t${fn:startsWith(${1:string}, ${2:prefix})}\nsnippet substr\n\t${fn:substring(${1:string}, ${2:begin}, ${3:end})}\nsnippet substr:a\n\t${fn:substringAfter(${1:string}, ${2:substr})}\nsnippet substr:b\n\t${fn:substringBefore(${1:string}, ${2:substr})}\nsnippet lc\n\t${fn:toLowerCase(${1:string})}\nsnippet uc\n\t${fn:toUpperCase(${1:string})}\nsnippet trim\n\t${fn:trim(${1:string})}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/jsp",["require","exports","module","ace/snippets/jsp.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./jsp.snippets");
|
||||
exports.scope = "jsp";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/jsp"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/jssm.js
vendored
14
vendor/assets/javascripts/ace/snippets/jssm.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/jssm",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/jssm"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/jsx.js
vendored
14
vendor/assets/javascripts/ace/snippets/jsx.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/jsx",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "jsx";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/jsx"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/julia.js
vendored
14
vendor/assets/javascripts/ace/snippets/julia.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/julia",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "julia";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/julia"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/kotlin.js
vendored
14
vendor/assets/javascripts/ace/snippets/kotlin.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/kotlin",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/kotlin"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/latex.js
vendored
14
vendor/assets/javascripts/ace/snippets/latex.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/latex",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "latex";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/latex"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/latte.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/latte.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/latte"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +0,0 @@
|
||||
define("ace/snippets/lean",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "lean";
|
||||
|
||||
});
|
14
vendor/assets/javascripts/ace/snippets/less.js
vendored
14
vendor/assets/javascripts/ace/snippets/less.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/less",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "less";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/less"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
19
vendor/assets/javascripts/ace/snippets/liquid.js
vendored
19
vendor/assets/javascripts/ace/snippets/liquid.js
vendored
File diff suppressed because one or more lines are too long
14
vendor/assets/javascripts/ace/snippets/lisp.js
vendored
14
vendor/assets/javascripts/ace/snippets/lisp.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/lisp",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "lisp";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/lisp"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +0,0 @@
|
||||
define("ace/snippets/live_script",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "";
|
||||
|
||||
});
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/livescript",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "livescript";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/livescript"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/logiql.js
vendored
14
vendor/assets/javascripts/ace/snippets/logiql.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/logiql",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "logiql";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/logiql"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
9
vendor/assets/javascripts/ace/snippets/logtalk.js
vendored
Normal file
9
vendor/assets/javascripts/ace/snippets/logtalk.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
; (function() {
|
||||
window.require(["ace/snippets/logtalk"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
1251
vendor/assets/javascripts/ace/snippets/lsl.js
vendored
1251
vendor/assets/javascripts/ace/snippets/lsl.js
vendored
File diff suppressed because one or more lines are too long
40
vendor/assets/javascripts/ace/snippets/lua.js
vendored
40
vendor/assets/javascripts/ace/snippets/lua.js
vendored
@ -1,28 +1,16 @@
|
||||
define("ace/snippets/lua",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet #!\n\
|
||||
#!/usr/bin/env lua\n\
|
||||
$1\n\
|
||||
snippet local\n\
|
||||
local ${1:x} = ${2:1}\n\
|
||||
snippet fun\n\
|
||||
function ${1:fname}(${2:...})\n\
|
||||
${3:-- body}\n\
|
||||
end\n\
|
||||
snippet for\n\
|
||||
for ${1:i}=${2:1},${3:10} do\n\
|
||||
${4:print(i)}\n\
|
||||
end\n\
|
||||
snippet forp\n\
|
||||
for ${1:i},${2:v} in pairs(${3:table_name}) do\n\
|
||||
${4:-- body}\n\
|
||||
end\n\
|
||||
snippet fori\n\
|
||||
for ${1:i},${2:v} in ipairs(${3:table_name}) do\n\
|
||||
${4:-- body}\n\
|
||||
end\n\
|
||||
";
|
||||
exports.scope = "lua";
|
||||
define("ace/snippets/lua.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet #!\n\t#!/usr/bin/env lua\n\t$1\nsnippet local\n\tlocal ${1:x} = ${2:1}\nsnippet fun\n\tfunction ${1:fname}(${2:...})\n\t\t${3:-- body}\n\tend\nsnippet for\n\tfor ${1:i}=${2:1},${3:10} do\n\t\t${4:print(i)}\n\tend\nsnippet forp\n\tfor ${1:i},${2:v} in pairs(${3:table_name}) do\n\t ${4:-- body}\n\tend\nsnippet fori\n\tfor ${1:i},${2:v} in ipairs(${3:table_name}) do\n\t ${4:-- body}\n\tend\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/lua",["require","exports","module","ace/snippets/lua.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./lua.snippets");
|
||||
exports.scope = "lua";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/lua"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/luapage",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "luapage";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/luapage"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
14
vendor/assets/javascripts/ace/snippets/lucene.js
vendored
14
vendor/assets/javascripts/ace/snippets/lucene.js
vendored
@ -1,7 +1,9 @@
|
||||
define("ace/snippets/lucene",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "lucene";
|
||||
|
||||
});
|
||||
; (function() {
|
||||
window.require(["ace/snippets/lucene"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
@ -1,11 +1,16 @@
|
||||
define("ace/snippets/makefile",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet ifeq\n\
|
||||
ifeq (${1:cond0},${2:cond1})\n\
|
||||
${3:code}\n\
|
||||
endif\n\
|
||||
";
|
||||
exports.scope = "makefile";
|
||||
define("ace/snippets/makefile.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet ifeq\n\tifeq (${1:cond0},${2:cond1})\n\t\t${3:code}\n\tendif\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/makefile",["require","exports","module","ace/snippets/makefile.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./makefile.snippets");
|
||||
exports.scope = "makefile";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/makefile"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user