This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

5
snippets/f90-mode/bd Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: block data
# --
block data $0

5
snippets/f90-mode/c Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: continue
# --
continue $0

5
snippets/f90-mode/ch Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: character
# --
character $0

5
snippets/f90-mode/cx Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: complex
# --
complex $0

5
snippets/f90-mode/dc Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: double complex
# --
double complex $0

8
snippets/f90-mode/do Normal file
View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: do ... end do ...
# key: do
# --
do $1
$0
end do

5
snippets/f90-mode/dp Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: double precision
# --
double precision $0

8
snippets/f90-mode/forall Normal file
View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: forall ... end forall ...
# key: forall
# --
forall ($1)
$0
end forall

View File

@@ -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

7
snippets/f90-mode/if Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: if then end if
# --
if ( ${1:condition} ) then
$0
end if

5
snippets/f90-mode/in Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: implicit none
# --
implicit none

5
snippets/f90-mode/inc Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: include
# --
include $0

5
snippets/f90-mode/intr Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: intrinsic
# --
intrinsic $0

5
snippets/f90-mode/l Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: logical
# --
logical $0

12
snippets/f90-mode/module Normal file
View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: module ... end module ...
# key: module
# --
module ${1:name}
contains
$0
end module $1

5
snippets/f90-mode/pa Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: parameter
# --
parameter $0

11
snippets/f90-mode/program Normal file
View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: program .. end program
# key: program
# --
program ${1:name}
${2:implicit none}
$0
end program $1

12
snippets/f90-mode/puref Normal file
View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: pure function ... end function ...
# key: pure func
# --
pure function ${1:name} (${2:arg})
${3:real} :: $1
${4:real, intent(in)} :: $2
$0
end function $1

10
snippets/f90-mode/pures Normal file
View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: pure subroutine .. end subroutine
# key: pure subroutine
# --
pure subroutine ${1:name} (${2:arg})
${3:real, intent(in) :: $2}
$0
end subroutine $1

5
snippets/f90-mode/re Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: read (*,*)
# --
read (${1:*},${2:*}) $0

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: subroutine .. end subroutine
# key: subroutine
# --
subroutine ${1:name} (${2:arg})
${3:real, intent(in) :: $2}
$0
end subroutine $1

9
snippets/f90-mode/until Normal file
View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: until ... end until ...
# key: until
# --
do
$0
if (${1:condition}) exit
end do

9
snippets/f90-mode/where Normal file
View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: where ... end where ...
# key: where
# --
where (${1:condition})
$0
end where

8
snippets/f90-mode/while Normal file
View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor: Jonas Kalderstam <jonas@kalderstam.se>
# name: while ... end while ...
# key: while
# --
do while (${1:condition})
$0
end do

5
snippets/f90-mode/wr Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor: Li Zhu <http://www.zhuli.name>
# name: write (*,*)
# --
write (${1:*},${2:*}) $0