init
This commit is contained in:
8
snippets/ada-mode/case.yasnippet
Normal file
8
snippets/ada-mode/case.yasnippet
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: case statement
|
||||
# key: case
|
||||
# --
|
||||
case $1 is
|
||||
when $3 => $4
|
||||
when others => $2;
|
||||
end case;$0
|
||||
14
snippets/ada-mode/function.yasnippet
Normal file
14
snippets/ada-mode/function.yasnippet
Normal file
@@ -0,0 +1,14 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: function declaration
|
||||
# key: function
|
||||
# --
|
||||
-- @name $1
|
||||
-- @return $3
|
||||
-- @param $2
|
||||
-- @description $5
|
||||
function ${1:Name}($2) return ${3:Integer} is
|
||||
$4
|
||||
begin
|
||||
$7
|
||||
return ${6:$3};
|
||||
end $1;$0
|
||||
10
snippets/ada-mode/procedure
Normal file
10
snippets/ada-mode/procedure
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: ada -*-
|
||||
# name: procedure
|
||||
# key: proc
|
||||
# --
|
||||
procedure $1 is
|
||||
$2
|
||||
begin
|
||||
$3
|
||||
end $1;
|
||||
$0
|
||||
6
snippets/ada-mode/stdimport
Normal file
6
snippets/ada-mode/stdimport
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: with
|
||||
# key: with
|
||||
# --
|
||||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
|
||||
Reference in New Issue
Block a user