Skip to content

Commit 2e3e1ac

Browse files
committed
Add some initial snippets
1 parent efcac43 commit 2e3e1ac

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [Unreleased]
88
- Initial release
99

10-
## [0.4.0] - 2017-05-29
10+
## [0.4.0] - 2017-05-29
1111
### Added
1212
- Show docs for intrinsic functions on hover
1313
### Changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@
4444
"scopeName": "source.fortran.modern",
4545
"path": "./syntaxes/fortran90.tmLanguage"
4646
}
47-
]
47+
],
48+
"snippets": [
49+
{
50+
"language": "fortran90",
51+
"path": "./snippets/fortran90.json"
52+
}
53+
]
4854
},
4955
"scripts": {
5056
"vscode:prepublish": "tsc -p ./",

snippets/fortran90.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"Program Skeleton": {
3+
"prefix": "program",
4+
"body": [
5+
"program ${1:name}",
6+
"implicit none",
7+
"",
8+
"end program ${1:name}"
9+
],
10+
"description": "Program Skeleton"
11+
},
12+
"Module Skeleton": {
13+
"prefix": "module",
14+
"body": [
15+
"module ${1:name}",
16+
"implicit none",
17+
"",
18+
"contains",
19+
"end module ${1:name}"
20+
],
21+
"description": "Create a new module"
22+
},
23+
"Do Loop": {
24+
"prefix": "do",
25+
"body": [
26+
"do ${1:index} = ${2:start},${3:end}",
27+
" !TODO_statement",
28+
" ${4}",
29+
"enddo"
30+
],
31+
"description": "Create a do loop"
32+
}
33+
34+
}

0 commit comments

Comments
 (0)