summaryrefslogtreecommitdiff
path: root/f90-mode/function
diff options
context:
space:
mode:
Diffstat (limited to 'f90-mode/function')
-rw-r--r--f90-mode/function12
1 files changed, 12 insertions, 0 deletions
diff --git a/f90-mode/function b/f90-mode/function
new file mode 100644
index 0000000..e8f13ef
--- /dev/null
+++ b/f90-mode/function
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: function ... end function ...
+# key: function
+# --
+function ${1:name} (${2:arg})
+ ${3:real} :: $1
+ ${4:real, intent(in)} :: $2
+
+ $0
+
+end function $1