1
1
{
2
- "Program Skeleton" : {
3
- "prefix" : " program" ,
4
- "body" : [
5
- " program ${1:name}" ,
6
- " \t implicit none" ,
7
- " \t ${0}" ,
8
- " end program ${1:name}"
9
- ],
10
- "description" : " Program Skeleton"
11
- },
12
- "Module Skeleton" : {
13
- "prefix" : " module" ,
14
- "body" : [
15
- " module ${1:name}" ,
16
- " \t implicit none" ,
17
- " \t ${2}" ,
18
- " contains" ,
19
- " \t ${0}" ,
20
- " end module ${1:name}"
21
- ],
22
- "description" : " Create a new module"
23
- },
24
- "Do Loop" : {
25
- "prefix" : " do" ,
26
- "body" : [
27
- " do ${1:index} = ${2:start}, ${3:end}" ,
28
- " \t ${0}" ,
29
- " end do"
30
- ],
31
- "description" : " Create a do loop"
32
- },
33
- "Function" : {
34
- "prefix" : " fun" ,
35
- "body" : [
36
- " function ${1:func}(${2:arg}) result(${3:retval})" ,
37
- " \t implicit none" ,
38
- " \t ${4:type} :: ${2:arg}" ,
39
- " \t ${4:type} :: ${3:retval}" ,
40
- " \t ${0}" ,
41
- " end function ${1:func}"
42
- ],
43
- "description" : " Create a function"
44
- },
45
- "Subroutine" : {
46
- "prefix" : " sub" ,
47
- "body" : [
48
- " subroutine ${1:routine}(${2:arg1}, ${3: arg2})" ,
49
- " implicit none" ,
50
- " ${4:type1},intent(in) :: ${2:arg1}" ,
51
- " ${5:type2},intent(out) :: ${3:arg2}" ,
52
- " ${0}" ,
53
- " end subroutine ${1:routine}"
54
- ],
55
- "description" : " Create a subroutine"
56
- },
57
- "ifs" : {
58
- "prefix" : " if" ,
59
- "body" : [
60
- " if ( ${1:condition} ) ${0}"
61
- ],
62
- "description" : " if (single line)"
63
- },
64
- "if" : {
65
- "prefix" : " if" ,
66
- "body" : [
67
- " if ( ${1:condition} ) then" ,
68
- " \t ${0}" ,
69
- " end if"
70
- ],
71
- "description" : " if then"
72
- },
73
- "elif" : {
74
- "prefix" : " el" ,
75
- "body" : [
76
- " else if ( ${1:condition} ) then" ,
77
- " \t ${0}"
78
- ],
79
- "description" : " else if"
80
- },
81
- "imp" : {
82
- "prefix" : " imp" ,
83
- "body" : [
84
- " implicit none" ,
85
- " ${0}"
86
- ],
87
- "description" : " implicit none"
88
- },
89
- "Module documentation header" : {
90
- "prefix" : " modoc" ,
91
- "body" : [
92
- " !------------------------------------------------------------------------------" ,
93
- " ! ${1:Institution}, ${2:Affiliation}" ,
94
- " !------------------------------------------------------------------------------" ,
95
- " !" ,
96
- " ! MODULE: ${3: Module name}" ,
97
- " !" ,
98
- " !> @author" ,
99
- " !> ${4:Author Name}}" ,
100
- " !" ,
101
- " ! DESCRIPTION: " ,
102
- " !> ${5: Short module description}" ,
103
- " !" ,
104
- " ! REVISION HISTORY:" ,
105
- " ! dd Mmm yyyy - Initial Version" ,
106
- " ! TODO_dd_mmm_yyyy - TODO_describe_appropriate_changes - TODO_name" ,
107
- " !------------------------------------------------------------------------------"
108
- ],
109
- "description" : " Add module documentation header"
110
- }
111
- }
2
+ "Program Skeleton" : {
3
+ "prefix" : " program" ,
4
+ "body" : [" program ${1:name}" , " \t implicit none" , " \t ${0}" , " end program ${1:name}" ],
5
+ "description" : " Program Skeleton"
6
+ },
7
+ "Module Skeleton" : {
8
+ "prefix" : " module" ,
9
+ "body" : [
10
+ " module ${1:name}" ,
11
+ " \t implicit none" ,
12
+ " \t ${2}" ,
13
+ " contains" ,
14
+ " \t ${0}" ,
15
+ " end module ${1:name}"
16
+ ],
17
+ "description" : " Create a new module"
18
+ },
19
+ "Do Loop" : {
20
+ "prefix" : " do" ,
21
+ "body" : [" do ${1:index} = ${2:start}, ${3:end}" , " \t ${0}" , " end do" ],
22
+ "description" : " Create a do loop"
23
+ },
24
+ "Function" : {
25
+ "prefix" : " fun" ,
26
+ "body" : [
27
+ " function ${1:func}(${2:arg}) result(${3:retval})" ,
28
+ " \t implicit none" ,
29
+ " \t ${4:type} :: ${2:arg}" ,
30
+ " \t ${4:type} :: ${3:retval}" ,
31
+ " \t ${0}" ,
32
+ " end function ${1:func}"
33
+ ],
34
+ "description" : " Create a function"
35
+ },
36
+ "Subroutine" : {
37
+ "prefix" : " sub" ,
38
+ "body" : [
39
+ " subroutine ${1:routine}(${2:arg1}, ${3: arg2})" ,
40
+ " implicit none" ,
41
+ " ${4:type1},intent(in) :: ${2:arg1}" ,
42
+ " ${5:type2},intent(out) :: ${3:arg2}" ,
43
+ " ${0}" ,
44
+ " end subroutine ${1:routine}"
45
+ ],
46
+ "description" : " Create a subroutine"
47
+ },
48
+ "ifs" : {
49
+ "prefix" : " if" ,
50
+ "body" : [" if ( ${1:condition} ) ${0}" ],
51
+ "description" : " if (single line)"
52
+ },
53
+ "if" : {
54
+ "prefix" : " if" ,
55
+ "body" : [" if ( ${1:condition} ) then" , " \t ${0}" , " end if" ],
56
+ "description" : " if then"
57
+ },
58
+ "elif" : {
59
+ "prefix" : " el" ,
60
+ "body" : [" else if ( ${1:condition} ) then" , " \t ${0}" ],
61
+ "description" : " else if"
62
+ },
63
+ "imp" : {
64
+ "prefix" : " imp" ,
65
+ "body" : [" implicit none" , " ${0}" ],
66
+ "description" : " implicit none"
67
+ },
68
+ "Module documentation header" : {
69
+ "prefix" : " modoc" ,
70
+ "body" : [
71
+ " !------------------------------------------------------------------------------" ,
72
+ " ! ${1:Institution}, ${2:Affiliation}" ,
73
+ " !------------------------------------------------------------------------------" ,
74
+ " !" ,
75
+ " ! MODULE: ${3: Module name}" ,
76
+ " !" ,
77
+ " !> @author" ,
78
+ " !> ${4:Author Name}}" ,
79
+ " !" ,
80
+ " ! DESCRIPTION: " ,
81
+ " !> ${5: Short module description}" ,
82
+ " !" ,
83
+ " ! REVISION HISTORY:" ,
84
+ " ! dd Mmm yyyy - Initial Version" ,
85
+ " ! TODO_dd_mmm_yyyy - TODO_describe_appropriate_changes - TODO_name" ,
86
+ " !------------------------------------------------------------------------------"
87
+ ],
88
+ "description" : " Add module documentation header"
89
+ }
90
+ }
0 commit comments