summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/delphi-mode/func.yasnippet
blob: a42a598fed6f9bf14c9a3a4f082d358c6948170a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# -*- mode: snippet -*-
# contributor: Alexander Sulfrian <alexander@sulfrian.net>
# name: function
# key: func
# condition: (not (delphi-in-class-definition))
# --
function ${1:$$(yas/choose-value (let (value) (dolist (element (delphi-get-classes) value) (setq value (cons (concat element ".") value)))))}${2:Name$(capitalize text)}($3): $4;
begin
$0
end;