diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-06-10 12:22:01 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-06-10 12:22:01 +0200 |
commit | 86985b454f75ac7f87e0dfe94fd754d7cbb0bf09 (patch) | |
tree | 42094d12360158d96bf8149d1b7a4c25e5445430 /library/ace/snippets/tcl.js | |
parent | 9d5d3a946817c1b1a9dc18dead85bc989e820564 (diff) | |
parent | c55a7b5f362e62696ef7d44cc972cb46c2802646 (diff) | |
download | volse-hubzilla-86985b454f75ac7f87e0dfe94fd754d7cbb0bf09.tar.gz volse-hubzilla-86985b454f75ac7f87e0dfe94fd754d7cbb0bf09.tar.bz2 volse-hubzilla-86985b454f75ac7f87e0dfe94fd754d7cbb0bf09.zip |
Merge branch 'dev' into sabre32
Diffstat (limited to 'library/ace/snippets/tcl.js')
-rw-r--r-- | library/ace/snippets/tcl.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/ace/snippets/tcl.js b/library/ace/snippets/tcl.js new file mode 100644 index 000000000..69ccc2594 --- /dev/null +++ b/library/ace/snippets/tcl.js @@ -0,0 +1 @@ +ace.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"})
\ No newline at end of file |