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

committed by
Sebastian Serth

parent
0a473c7fd3
commit
b00d45521b
111
vendor/assets/javascripts/ace/snippets/tcl.js
vendored
111
vendor/assets/javascripts/ace/snippets/tcl.js
vendored
@ -1,99 +1,16 @@
|
||||
define("ace/snippets/tcl",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# #!/usr/bin/env tclsh\n\
|
||||
snippet #!\n\
|
||||
#!/usr/bin/env tclsh\n\
|
||||
\n\
|
||||
# Process\n\
|
||||
snippet pro\n\
|
||||
proc ${1:function_name} {${2:args}} {\n\
|
||||
${3:#body ...}\n\
|
||||
}\n\
|
||||
#xif\n\
|
||||
snippet xif\n\
|
||||
${1:expr}? ${2:true} : ${3:false}\n\
|
||||
# Conditional\n\
|
||||
snippet if\n\
|
||||
if {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
}\n\
|
||||
# Conditional if..else\n\
|
||||
snippet ife\n\
|
||||
if {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
} else {\n\
|
||||
${3:# else...}\n\
|
||||
}\n\
|
||||
# Conditional if..elsif..else\n\
|
||||
snippet ifee\n\
|
||||
if {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
} elseif {${3}} {\n\
|
||||
${4:# elsif...}\n\
|
||||
} else {\n\
|
||||
${5:# else...}\n\
|
||||
}\n\
|
||||
# If catch then\n\
|
||||
snippet ifc\n\
|
||||
if { [catch {${1:#do something...}} ${2:err}] } {\n\
|
||||
${3:# handle failure...}\n\
|
||||
}\n\
|
||||
# Catch\n\
|
||||
snippet catch\n\
|
||||
catch {${1}} ${2:err} ${3:options}\n\
|
||||
# While Loop\n\
|
||||
snippet wh\n\
|
||||
while {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
}\n\
|
||||
# For Loop\n\
|
||||
snippet for\n\
|
||||
for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n\
|
||||
${4:# body...}\n\
|
||||
}\n\
|
||||
# Foreach Loop\n\
|
||||
snippet fore\n\
|
||||
foreach ${1:x} {${2:#list}} {\n\
|
||||
${3:# body...}\n\
|
||||
}\n\
|
||||
# after ms script...\n\
|
||||
snippet af\n\
|
||||
after ${1:ms} ${2:#do something}\n\
|
||||
# after cancel id\n\
|
||||
snippet afc\n\
|
||||
after cancel ${1:id or script}\n\
|
||||
# after idle\n\
|
||||
snippet afi\n\
|
||||
after idle ${1:script}\n\
|
||||
# after info id\n\
|
||||
snippet afin\n\
|
||||
after info ${1:id}\n\
|
||||
# Expr\n\
|
||||
snippet exp\n\
|
||||
expr {${1:#expression here}}\n\
|
||||
# Switch\n\
|
||||
snippet sw\n\
|
||||
switch ${1:var} {\n\
|
||||
${3:pattern 1} {\n\
|
||||
${4:#do something}\n\
|
||||
}\n\
|
||||
default {\n\
|
||||
${2:#do something}\n\
|
||||
}\n\
|
||||
}\n\
|
||||
# Case\n\
|
||||
snippet ca\n\
|
||||
${1:pattern} {\n\
|
||||
${2:#do something}\n\
|
||||
}${3}\n\
|
||||
# Namespace eval\n\
|
||||
snippet ns\n\
|
||||
namespace eval ${1:path} {${2:#script...}}\n\
|
||||
# Namespace current\n\
|
||||
snippet nsc\n\
|
||||
namespace current\n\
|
||||
";
|
||||
exports.scope = "tcl";
|
||||
define("ace/snippets/tcl.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# #!/usr/bin/env tclsh\nsnippet #!\n\t#!/usr/bin/env tclsh\n\t\n# Process\nsnippet pro\n\tproc ${1:function_name} {${2:args}} {\n\t\t${3:#body ...}\n\t}\n#xif\nsnippet xif\n\t${1:expr}? ${2:true} : ${3:false}\n# Conditional\nsnippet if\n\tif {${1}} {\n\t\t${2:# body...}\n\t}\n# Conditional if..else\nsnippet ife\n\tif {${1}} {\n\t\t${2:# body...}\n\t} else {\n\t\t${3:# else...}\n\t}\n# Conditional if..elsif..else\nsnippet ifee\n\tif {${1}} {\n\t\t${2:# body...}\n\t} elseif {${3}} {\n\t\t${4:# elsif...}\n\t} else {\n\t\t${5:# else...}\n\t}\n# If catch then\nsnippet ifc\n\tif { [catch {${1:#do something...}} ${2:err}] } {\n\t\t${3:# handle failure...}\n\t}\n# Catch\nsnippet catch\n\tcatch {${1}} ${2:err} ${3:options}\n# While Loop\nsnippet wh\n\twhile {${1}} {\n\t\t${2:# body...}\n\t}\n# For Loop\nsnippet for\n\tfor {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n\t\t${4:# body...}\n\t}\n# Foreach Loop\nsnippet fore\n\tforeach ${1:x} {${2:#list}} {\n\t\t${3:# body...}\n\t}\n# after ms script...\nsnippet af\n\tafter ${1:ms} ${2:#do something}\n# after cancel id\nsnippet afc\n\tafter cancel ${1:id or script}\n# after idle\nsnippet afi\n\tafter idle ${1:script}\n# after info id\nsnippet afin\n\tafter info ${1:id}\n# Expr\nsnippet exp\n\texpr {${1:#expression here}}\n# Switch\nsnippet sw\n\tswitch ${1:var} {\n\t\t${3:pattern 1} {\n\t\t\t${4:#do something}\n\t\t}\n\t\tdefault {\n\t\t\t${2:#do something}\n\t\t}\n\t}\n# Case\nsnippet ca\n\t${1:pattern} {\n\t\t${2:#do something}\n\t}${3}\n# Namespace eval\nsnippet ns\n\tnamespace eval ${1:path} {${2:#script...}}\n# Namespace current\nsnippet nsc\n\tnamespace current\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/tcl",["require","exports","module","ace/snippets/tcl.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./tcl.snippets");
|
||||
exports.scope = "tcl";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/tcl"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
Reference in New Issue
Block a user