Ada mode update
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled
This commit is contained in:
@@ -95,7 +95,7 @@ else:
|
||||
for variable in variables:
|
||||
if not variable == "" and not variable.startswith("typ"):
|
||||
variableless = variable.replace("\t", "").replace (" ", "")
|
||||
snip.rv += f"-- @variable {variableless}\n"
|
||||
snip.rv += f"\t-- @variable {variableless}\n"
|
||||
`-- @description $4
|
||||
procedure ${1:`!p snip.rv = fn.split('.')[0].capitalize()`} `!p snip.rv = "" if t[2] == "" else "("`${2:N : Natural}`!p snip.rv = "" if t[2] == "" else ")"` is
|
||||
$3
|
||||
@@ -129,7 +129,7 @@ for parameter in parameters:
|
||||
for parameter in parameter_list:
|
||||
if not parameter == "" and not parameter.startswith("typ"):
|
||||
parameterless = parameter.replace("\t", "")
|
||||
snip.rv += f"-- @parameter {parameterless}\n"
|
||||
snip.rv += f"\t-- @parameter {parameterless}\n"
|
||||
``!p
|
||||
snip.rv = ""
|
||||
if t[4].startswith("l"):
|
||||
@@ -139,7 +139,7 @@ else:
|
||||
for variable in variables:
|
||||
if not variable == "" and not variable.startswith("typ") and not variable.startswith("--"):
|
||||
variableless = variable.replace("\t", "").replace (" ", "")
|
||||
snip.rv += f"-- @variable {variableless}\n"
|
||||
snip.rv += f"\t-- @variable {variableless}\n"
|
||||
` -- @description $5
|
||||
function ${1:`!p snip.rv = fn.split('.')[0].capitalize()`} `!p snip.rv = "" if t[2] == "" else "("`${2:N : Natural}`!p snip.rv = "" if t[2] == "" else ")"` return ${3:Natural} is
|
||||
$4
|
||||
@@ -187,7 +187,8 @@ if t[6] == "y":
|
||||
endsnippet
|
||||
|
||||
snippet package "Create package configuration" b
|
||||
package ${1:body }${2:`!p snip.rv = fn.split('.')[0]`} is
|
||||
package ${1:body }${2:`!p package_name = fn.split('.')[0]
|
||||
snip.rv = package_name[0].upper() + package_name[1:]`} is
|
||||
$0
|
||||
end $2;
|
||||
endsnippet
|
||||
|
||||
@@ -11,7 +11,7 @@ if __name__ == "__main__":
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet docmodule "Documentation for modules" A
|
||||
snippet docmodule "Documentation for modules"
|
||||
"""
|
||||
File: `!p snip.rv = fn`
|
||||
Author: ${1:Yannick Reiß}
|
||||
@@ -21,7 +21,7 @@ Description: ${2:No further description}
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet def "Python Function" A
|
||||
snippet def "Python Function"
|
||||
def ${1:function}(${2}):
|
||||
"""
|
||||
@name $1
|
||||
|
||||
Reference in New Issue
Block a user