Sha256: aba7a8af131b96fcc0609ec2440e3c3ffbc234986fef03417b85ee9db2005d09

Contents?: true

Size: 1.65 KB

Versions: 97

Compression:

Stored size: 1.65 KB

Contents

define("ace/snippets/tcl",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# #!/usr/bin/env tclsh\nsnippet #!\n	#!/usr/bin/env tclsh\n	\n# Process\nsnippet pro\n	proc ${1:function_name} {${2:args}} {\n		${3:#body ...}\n	}\n#xif\nsnippet xif\n	${1:expr}? ${2:true} : ${3:false}\n# Conditional\nsnippet if\n	if {${1}} {\n		${2:# body...}\n	}\n# Conditional if..else\nsnippet ife\n	if {${1}} {\n		${2:# body...}\n	} else {\n		${3:# else...}\n	}\n# Conditional if..elsif..else\nsnippet ifee\n	if {${1}} {\n		${2:# body...}\n	} elseif {${3}} {\n		${4:# elsif...}\n	} else {\n		${5:# else...}\n	}\n# If catch then\nsnippet ifc\n	if { [catch {${1:#do something...}} ${2:err}] } {\n		${3:# handle failure...}\n	}\n# Catch\nsnippet catch\n	catch {${1}} ${2:err} ${3:options}\n# While Loop\nsnippet wh\n	while {${1}} {\n		${2:# body...}\n	}\n# For Loop\nsnippet for\n	for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n		${4:# body...}\n	}\n# Foreach Loop\nsnippet fore\n	foreach ${1:x} {${2:#list}} {\n		${3:# body...}\n	}\n# after ms script...\nsnippet af\n	after ${1:ms} ${2:#do something}\n# after cancel id\nsnippet afc\n	after cancel ${1:id or script}\n# after idle\nsnippet afi\n	after idle ${1:script}\n# after info id\nsnippet afin\n	after info ${1:id}\n# Expr\nsnippet exp\n	expr {${1:#expression here}}\n# Switch\nsnippet sw\n	switch ${1:var} {\n		${3:pattern 1} {\n			${4:#do something}\n		}\n		default {\n			${2:#do something}\n		}\n	}\n# Case\nsnippet ca\n	${1:pattern} {\n		${2:#do something}\n	}${3}\n# Namespace eval\nsnippet ns\n	namespace eval ${1:path} {${2:#script...}}\n# Namespace current\nsnippet nsc\n	namespace current\n",t.scope="tcl"})

Version data entries

97 entries across 97 versions & 3 rubygems

Version Path
optimacms-0.1.61 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.30 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.29 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.23 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.15 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.12 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.11 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.9 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.8 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.7 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.6 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.5 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.2.26 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.2.25 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.2.24 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.4 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.3 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.2 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.3.1 spec/dummy/public/js/ace/src-min/snippets/tcl.js
optimacms-0.2.23 spec/dummy/public/js/ace/src-min/snippets/tcl.js