summaryrefslogtreecommitdiffstats
path: root/snippets/delphi-mode/procedure.yasnippet
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/delphi-mode/procedure.yasnippet')
-rw-r--r--snippets/delphi-mode/procedure.yasnippet10
1 files changed, 10 insertions, 0 deletions
diff --git a/snippets/delphi-mode/procedure.yasnippet b/snippets/delphi-mode/procedure.yasnippet
new file mode 100644
index 0000000..6039ad8
--- /dev/null
+++ b/snippets/delphi-mode/procedure.yasnippet
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# contributor: Alexander Sulfrian <alexander@sulfrian.net>
+# name: procedure
+# key: proc
+# condition: (not (delphi-in-class-definition))
+# --
+procedure ${1:$$(yas/choose-value (let (value) (dolist (element (delphi-get-classes) value) (setq value (cons (concat element ".") value)))))}${2:Name$(upcase-initials text)}($3);
+begin
+$0
+end; \ No newline at end of file