Skip to content

Commit a79040f

Browse files
committed
1 parent 182a43c commit a79040f

File tree

8 files changed

+235
-0
lines changed

8 files changed

+235
-0
lines changed

snippets/ada-ts-mode/fctbody

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# -*- mode: snippet -*-
2+
# name: function_body
3+
# key: fctbody
4+
# --
5+
-- ..................................
6+
-- . .
7+
-- . ${1:Subprogram_name} . BODY
8+
-- . .
9+
-- ..................................
10+
function ${2:<function identifier>}
11+
( ${3:<parameter specification>;
12+
<parameter specification>} )
13+
return ${4:<type mark>} is
14+
15+
--| Notes (none)
16+
--| ${5:[Additional comments on the use of the subprogram.]}
17+
--|
18+
--| Modifications
19+
--| ${6:[A list of modifications made to the subprogram BODY.
20+
--| Each entry in the list should include the date of the change,
21+
--| the name of the person who made the change, and a description
22+
--| of the modification. The first entry in the list should
23+
--| always be the initial coding of the subprogram body.
24+
--| The "Modifications" section is required only when the
25+
--| subprogram body is a stand-alone compilation unit
26+
--| in a file of its own.]}
27+
$0

snippets/ada-ts-mode/fctspec

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# -*- mode: snippet -*-
2+
# name: function_specification
3+
# key: fctspec
4+
# --
5+
--X1804: CSU
6+
-- ..................................
7+
-- . .
8+
-- . ${1:Subprogram_name} . SPEC
9+
-- . .
10+
-- ..................................
11+
function ${2:<function identifier>}
12+
( ${3:<parameter specification>;
13+
<parameter specification>} )
14+
return ${4:<type mark>};
15+
16+
--| Purpose
17+
--| ${5:[This section is a description of all purposes and functions
18+
--| of the subprogram.]}
19+
--|
20+
--| Exceptions (none)
21+
--| ${6:[A list of all exceptions which may propagate out of the
22+
--| subprogram, and a description of when each would be raised.]}
23+
--|
24+
--| Notes (none)
25+
--| ${7:[Additional comments on the use of the subprogram.]}
26+
--|
27+
--| Modifications
28+
--| ${8:[A list of modifications made to the subprogram DECLARATION.
29+
--| Each entry in the list should include the date of the change,
30+
--| the name of the person who made the change, and a description
31+
--| of the modification. The first entry in the list should
32+
--| always be the initial coding of the subprogram declaration.
33+
--| The "Modifications" section is required only when the
34+
--| subprogram declaration is a stand-alone compilation unit
35+
--| in a file of its own.]}
36+
$0

snippets/ada-ts-mode/pacbody

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- mode: snippet -*-
2+
# name: package_body
3+
# key: pacbody
4+
# --
5+
-- **********************************
6+
-- * *
7+
-- * ${1:Package_name} * BODY
8+
-- * *
9+
-- **********************************
10+
package body ${2:<package identifier>} is
11+
12+
--| Notes (none)
13+
--| ${3:[Additional comments on the design, implementation, and
14+
--| use of the package.]}
15+
--|
16+
--| Modifications
17+
--| ${4:[A list of modifications made to the package BODY.
18+
--| Each entry in the list should include the date of the change,
19+
--| the name of the person who made the change, and a description
20+
--| of the modification. The first entry in the list should
21+
--| always be the initial coding of the package BODY.
22+
--| The "Modifications" section is required only when the
23+
--| package BODY is a stand-alone compilation unit
24+
--| in a file of its own.]}
25+
$0

snippets/ada-ts-mode/pacspec

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# -*- mode: snippet -*-
2+
# name: package_specification
3+
# key: pacspec
4+
# --
5+
--X1804: CSC
6+
-- **********************************
7+
-- * *
8+
-- * ${1:Package_name} * SPEC
9+
-- * *
10+
-- **********************************
11+
package ${2:<package identifier>} is
12+
13+
--| Purpose
14+
--| ${3:[This section is a description of the purpose and function
15+
--| of the package.]}
16+
--|
17+
--| Initialization Exceptions (none)
18+
--| ${4:[A list of all exceptions which may propagate out of the
19+
--| package INITIALIZATION PART and a description of when each
20+
--| would be raised.]}
21+
--|
22+
--| Notes (none)
23+
--| ${5:[Additional comments on the use of the package.]}
24+
--|
25+
--| Modifications
26+
--| ${6:[A list of modifications made to the package SPECIFICATION.
27+
--| Each entry in the list should include the date of the change,
28+
--| the name of the person who made the change, and a description
29+
--| of the modification. The first entry in the list should
30+
--| always be the initial coding of the package specification.
31+
--| The "Modifications" section is required only when the
32+
--| package specification is a stand-alone compilation unit
33+
--| in a file of its own.]}
34+
$0

snippets/ada-ts-mode/probody

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- mode: snippet -*-
2+
# name: procedure_body
3+
# key: probody
4+
# --
5+
-- ..................................
6+
-- . .
7+
-- . ${1:Subprogram_name} . BODY
8+
-- . .
9+
-- ..................................
10+
procedure ${2:<procedure identifier>}
11+
( ${3:<parameter specification>;
12+
<parameter specification>} ) is
13+
14+
--| Notes (none)
15+
--| ${4:[Additional comments on the use of the subprogram.]}
16+
--|
17+
--| Modifications
18+
--| ${5:[A list of modifications made to the subprogram BODY.
19+
--| Each entry in the list should include the date of the change,
20+
--| the name of the person who made the change, and a description
21+
--| of the modification. The first entry in the list should
22+
--| always be the initial coding of the subprogram body.
23+
--| The "Modifications" section is required only when the
24+
--| subprogram body is a stand-alone compilation unit
25+
--| in a file of its own.]}
26+
$0

snippets/ada-ts-mode/prospec

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- mode: snippet -*-
2+
# name: procedure_specification
3+
# key: prospec
4+
# --
5+
--X1804: CSU
6+
-- ..................................
7+
-- . .
8+
-- . ${1:Subprogram_name} . SPEC
9+
-- . .
10+
-- ..................................
11+
procedure ${2:<procedure identifier>}
12+
( ${3:<parameter specification>;
13+
<parameter specification>} );
14+
15+
--| Purpose
16+
--| ${4:[This section is a description of all purposes and functions
17+
--| of the subprogram.]}
18+
--|
19+
--| Exceptions (none)
20+
--| ${5:[A list of all exceptions which may propagate out of the
21+
--| subprogram, and a description of when each would be raised.]}
22+
--|
23+
--| Notes (none)
24+
--| ${6:[Additional comments on the use of the subprogram.]}
25+
--|
26+
--| Modifications
27+
--| ${7:[A list of modifications made to the subprogram DECLARATION.
28+
--| Each entry in the list should include the date of the change,
29+
--| the name of the person who made the change, and a description
30+
--| of the modification. The first entry in the list should
31+
--| always be the initial coding of the subprogram declaration.
32+
--| The "Modifications" section is required only when the
33+
--| subprogram declaration is a stand-alone compilation unit
34+
--| in a file of its own.]}
35+
$0

snippets/ada-ts-mode/tskbody

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- mode: snippet -*-
2+
# name: task_body
3+
# key: tskbody
4+
# --
5+
-- **********************************
6+
-- * *
7+
-- * ${1:Task_name} * BODY
8+
-- * *
9+
-- **********************************
10+
task body ${2:<task identifier>} is
11+
12+
--| Notes (none)
13+
--| ${3:[Additional comments on the use of the task.]}
14+
--|
15+
--| Modifications
16+
--| ${4:[A list of modifications made to the task BODY.
17+
--| Each entry in the list should include the date of the change,
18+
--| the name of the person who made the change, and a description
19+
--| of the modification. The first entry in the list should
20+
--| always be the initial coding of the task BODY.
21+
--| The "Modifications" section is required only when the
22+
--| task BODY is a stand-alone compilation unit
23+
--| in a file of its own.]}
24+
$0

snippets/ada-ts-mode/tskspec

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- mode: snippet -*-
2+
# name: task_specification
3+
# key: tskspec
4+
# --
5+
-- **********************************
6+
-- * *
7+
-- * ${1:Task_name} * SPEC
8+
-- * *
9+
-- **********************************
10+
task ${2:<task identifier>} is
11+
12+
--| Purpose
13+
--| ${3:[This section is a description of all purposes and functions
14+
--| of the task.]}
15+
--|
16+
--| Notes (none)
17+
--| ${4:[Additional comments on the use of the task.]}
18+
--|
19+
--| Modifications
20+
--| ${5:[A list of modifications made to the task DECLARATION.
21+
--| Each entry in the list should include the date of the change,
22+
--| the name of the person who made the change, and a description
23+
--| of the modification. The first entry in the list should
24+
--| always be the initial coding of the task declaration.
25+
--| The "Modifications" section is required only when the
26+
--| task declaration is a stand-alone compilation unit
27+
--| in a file of its own.]}
28+
$0

0 commit comments

Comments
 (0)