diff --git a/UltiSnips/ada.snippets b/UltiSnips/ada.snippets index a33ff4f..84e21d7 100644 --- a/UltiSnips/ada.snippets +++ b/UltiSnips/ada.snippets @@ -1,5 +1,26 @@ -snippet textio "Insert Textio import" b -with Ada.Text_IO;$0 +snippet helloworld "Hello world example to test features" b +-- `!p snip.rv = fn` +-- Created on: `date` +-- Author(s): Yannick Reiss +-- 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 snippet procedure "insert procedure" b @@ -112,14 +133,6 @@ else: `;$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 - snippet project "Project" b project ${1:Default} is for Source_Dirs use ("${2:src}");