-
Notifications
You must be signed in to change notification settings - Fork 0
/
gpr-snippets.json
45 lines (45 loc) · 1.1 KB
/
gpr-snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"Case Statement": {
"prefix": "case",
"scope": "gpr",
"body": [
"case ${1:Variable} is",
" when \"${3:Condition}\" =>",
" $0",
" when others =>",
" $2",
"end case;"
],
"description": "Case Statement"
},
"Package Declaration": {
"prefix": "package",
"scope": "gpr",
"body": [
"package ${1|Binder,Builder,Check,Clean,Compiler,Cross_Reference,Documentation,Eliminate,Finder,Gnatls,Gnatstub,IDE,Install,Linker,Metrics,Naming,Pretty_Printer,Remote,Stack,Synchronize|} is",
" $0",
"end $1;"
],
"description": "Package Declaration"
},
"Package Extension": {
"prefix": "package",
"scope": "gpr",
"body": [
"package ${1:Name} extends ${2} is",
" $0",
"end $1;"
],
"description": "Package Extension"
},
"Project Declaration": {
"prefix": "project",
"scope": "gpr",
"body": [
"${1|project,abstract project,aggregate project,library project|} ${2:Name} ${3|is,extends \"\" is|}",
" $0",
"end ${2:Name};"
],
"description": "Project Declaration"
}
}