Ada Snippets, dict update

This commit is contained in:
Yannick Reiß 2023-11-23 08:15:00 +01:00
parent 7596423a38
commit 6726b2f95b
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
3 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,7 @@ snippet textio "Insert Textio import" b
with Ada.Text_IO;$0 with Ada.Text_IO;$0
endsnippet endsnippet
snippet procedure "insert procedure" bA snippet procedure "insert procedure" b
-- @name $1 -- @name $1
-- @return -- @return
`!p `!p
@ -23,7 +23,7 @@ begin
end $1;$0 end $1;$0
endsnippet endsnippet
snippet function "insert function" bA snippet function "insert function" b
-- @name $1 -- @name $1
-- @return $3 -- @return $3
-- @param $2 -- @param $2
@ -58,7 +58,7 @@ def complete(t, opts):
return "(" + "|".join(opts) + ")" return "(" + "|".join(opts) + ")"
endglobal endglobal
snippet if "If condition" bA snippet if "If condition" b
if $1 then if $1 then
$2 $2
$3`!p snip.rv = complete(t[3], ["elsif", "else", "end if;"])` ${4:`!p if t[3] == "elsif": $3`!p snip.rv = complete(t[3], ["elsif", "else", "end if;"])` ${4:`!p if t[3] == "elsif":
@ -102,3 +102,10 @@ endsnippet
snippet type "declare a new type" bA snippet type "declare a new type" bA
type ${1:TypeName} is ${2:array($3..$4)} of ${5:Integer};$0 type ${1:TypeName} is ${2:array($3..$4)} of ${5:Integer};$0
endsnippet endsnippet
snippet docstring "Document String with most important infor" b
-- `!p snip.rv = fn`
-- Created on: `date`
-- Author(s): ${1:Yannick Reiß}
-- Content: ${2: Function `!p snip.rv = fn.split('.')[0]`}
endsnippet

View File

@ -294,3 +294,4 @@ Synthesizerimplementierung
Kologromov Kologromov
frame frame
Sampling Sampling
empty

Binary file not shown.