summarylogtreecommitdiffstats
path: root/tcl.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tcl.conf')
-rw-r--r--tcl.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/tcl.conf b/tcl.conf
new file mode 100644
index 000000000000..9897865254f9
--- /dev/null
+++ b/tcl.conf
@@ -0,0 +1,29 @@
+# Geany's snippets configuration file
+#
+# use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR).
+# use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode.
+# use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue').
+# use %key% for all keys defined in the [Special] section.
+# use %cursor% to define where the cursor should be placed after completion. You can define multiple
+# %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor
+# position in the completed snippet.
+# You can define a section for each supported filetype to overwrite default settings, the section
+# name must match exactly the internal filetype name, run 'geany --ft-names' for a full list.
+#
+# Additionally, you can use most of the template wildcards like {developer} or {date} in the snippets.
+# See the documentation for details.
+
+
+[Tcl]
+proc=proc %cursor% { } {\n\t\n} ; # end proc
+namespace=namespace eval %cursor% {\n\t\n}; # end namespace
+expr=expr { %cursor% }
+oo=oo::class create %cursor% {\n\t\n}; # end class
+for=for {set i 0} {$i < %cursor%} {incr i} {\n\t\n} ; # end for
+while=while { $%cursor% } {\n\t\n} ; # end while
+foreach=foreach x $%cursor% {\n\t\n} ; # end foreach
+if=if { $%cursor% } {\n\t\n} ; # end if
+else=else {\n\t\n} ; # end else
+elseif=elseif { $%cursor% } {\n\t\n} ; # end elseif
+switch=switch %cursor% {\n\t\n\tdefault { }\n} ; # end switch
+set=set %cursor% { } \ No newline at end of file