Add helloworld example Ada snippet for testing
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 24s Details

This commit is contained in:
Yannick Reiß 2024-09-14 17:54:46 +02:00
parent ab043c5c1c
commit 04eadef1d4
1 changed files with 23 additions and 10 deletions

View File

@ -1,5 +1,26 @@
snippet textio "Insert Textio import" b snippet helloworld "Hello world example to test features" b
with Ada.Text_IO;$0 -- `!p snip.rv = fn`
-- Created on: `date`
-- Author(s): Yannick Reiss <yannick.reiss@nickr.eu>
-- Content: Hello world example
with Ada.Text_IO; use Ada.Text_IO;
-- @name ${1:`!p snip.rv = fn[0].upper() + fn[1:].split('.')[0]`}
-- @return
-- @description Function printing hello world.
procedure $1 is
begin
${2:Put_Line ("Hello world!");}
end $1;$0
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]`}
$0
endsnippet endsnippet
snippet procedure "insert procedure" b snippet procedure "insert procedure" b
@ -112,14 +133,6 @@ else:
`;$0 `;$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]`}
$0
endsnippet
snippet project "Project" b snippet project "Project" b
project ${1:Default} is project ${1:Default} is
for Source_Dirs use ("${2:src}"); for Source_Dirs use ("${2:src}");