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

committed by
Sebastian Serth

parent
0a473c7fd3
commit
b00d45521b
@ -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;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
Reference in New Issue
Block a user