Overwork LaTeX snippets
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
snippet fn "function declaration" i
|
||||
// $3 $1
|
||||
// ${4:Description}
|
||||
fn $1($2) `!p
|
||||
if t[3] == "":
|
||||
snip.rv = ""
|
||||
else:
|
||||
snip.rv = " -> "` $3 {
|
||||
$4
|
||||
$5
|
||||
}
|
||||
$0
|
||||
endsnippet
|
||||
@@ -27,3 +29,9 @@ impl ${1:struct} {
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet for "for-loop"
|
||||
for ${1:i} in ${2:$3..$4} {
|
||||
$5
|
||||
}$0
|
||||
endsnippet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user