mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fun
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: function
|
||||
# --
|
||||
function ${1:name}
|
||||
${2:argument type}, intent(${3:inout}) :: ${1/\w+\((.*)\)|.*/$1/}
|
||||
${4:function type} :: ${1/(\w+).*/$1/}
|
||||
$0
|
||||
end function ${1/(\w+).*/$1/}
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: interf
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: interface
|
||||
# --
|
||||
interface ${1:name}
|
||||
$0
|
||||
end interface ! $1
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: mp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: module procedure
|
||||
# --
|
||||
module procedure ${0:name}
|
||||
11
extras/imported/f90-mode/Programming Units/module.yasnippet
Normal file
11
extras/imported/f90-mode/Programming Units/module.yasnippet
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: mod
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: module
|
||||
# --
|
||||
module ${1:name}
|
||||
|
||||
implicit none
|
||||
$0
|
||||
|
||||
end module $1
|
||||
11
extras/imported/f90-mode/Programming Units/program.yasnippet
Normal file
11
extras/imported/f90-mode/Programming Units/program.yasnippet
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: prog
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: program
|
||||
# --
|
||||
program ${1:name}
|
||||
|
||||
implicit none
|
||||
$0
|
||||
|
||||
end program $1
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sub
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: subroutine
|
||||
# --
|
||||
subroutine ${1:name}
|
||||
${2:argument type}, intent(${3:inout}) :: ${1/\w+\((.*)\)|.*/$1/}
|
||||
$0
|
||||
end subroutine ${1/(\w+).*/$1/}
|
||||
Reference in New Issue
Block a user