This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

11
snippets/raku-mode/elsif Normal file
View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: elsif
# key: ifi
# --
if ${1:condition} {
$2
} elsif ${3:condition} {
$4
} else {
$5
}

7
snippets/raku-mode/for Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for
# key: for
# --
for ${1:lista} {
$0
}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: for-guard
# key: forg
# --
$0 for ${1:list}

7
snippets/raku-mode/forv Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for variable
# key: forv
# --
for ${1:list} -> ${2:i} {
$0
}

8
snippets/raku-mode/forvc Normal file
View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: for variable is copy
# key: forvc
# --
for ${1:list} -> ${2:i} is copy {
$0
}

7
snippets/raku-mode/forw Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for variable is rw
# key: forw
# --
for ${1:list} -> ${2:i} is rw {
$0
}

9
snippets/raku-mode/given Normal file
View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: given
# key: given
# --
given ${1:variable} {
when ${2:condition} { ${3:block} }
when ${4:condition} { ${5:block} }
default { ${6:default-block} }
}

7
snippets/raku-mode/if Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: if
# key: if
# --
if ${1:condition} {
$0
}

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: if else
# key: ife
# --
if ${1:condition} {
$2
} else {
$3
}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: if guard
# key: ifg
# --
$0 if ${1:condition};

7
snippets/raku-mode/main Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: main
# key: main
# --
sub MAIN${2:(${3:args})} {
$0
}

7
snippets/raku-mode/multi Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: multi
# key: multi
# --
multi ${1:subrutine}${2:(${3:args})} {
$0
}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: multi-line and in-the-middle comments
# key: co
# --
#`($0)

9
snippets/raku-mode/pod Normal file
View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Pod
# key: pod
# --
=begin ${1:comment}
$0
=end $1

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Subrutine
# key: sub
# --
sub ${1:subrutine}${2:(${3:args})} {
$0
}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: subset
# key: subset
# --
subset ${1:name} of ${2:(Type)} where { $_ $0}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Ternary Operator
# key: tern
# --
${1:condition} ?? ${2:true} !! ${3:false};

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: unless
# key: un
# --
unless ${1:condition} {
$0
}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: unless guard
# key: ung
# --
$0 unless ${1:condition};

7
snippets/raku-mode/until Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: until
# key: until
# --
until ${1:condition} {
}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: untilg
# key: untilg
# --
$0 until ${1:condition};

7
snippets/raku-mode/while Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: while
# key: while
# --
while ${1:condition} {
$0
}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: whileg
# key: whileg
# --
$0 while ${1:condition};