summaryrefslogblamecommitdiffstats
path: root/emacs.d/snippets/delphi-mode/func.yasnippet
blob: 31fe4132141dff9f3bca2efbd6190c321384354f (plain) (tree)
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$(upcase-initials text)}($3): $4;
begin
$0
end;