2012-08-16 23:41:25 -04:00
|
|
|
snippet lib
|
|
|
|
#library('${1}');
|
|
|
|
${2}
|
|
|
|
snippet im
|
|
|
|
#import('${1}');
|
|
|
|
${2}
|
|
|
|
snippet so
|
|
|
|
#source('${1}');
|
|
|
|
${2}
|
|
|
|
snippet main
|
|
|
|
static void main() {
|
2013-07-17 19:06:05 -04:00
|
|
|
${1}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet st
|
|
|
|
static ${1}
|
|
|
|
snippet fi
|
|
|
|
final ${1}
|
|
|
|
snippet re
|
|
|
|
return ${1}
|
|
|
|
snippet br
|
|
|
|
break;
|
|
|
|
snippet th
|
|
|
|
throw ${1}
|
|
|
|
snippet cl
|
2013-07-17 19:06:05 -04:00
|
|
|
class ${1:`vim_snippets#Filename("", "untitled")`} ${2}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet in
|
2013-07-17 19:06:05 -04:00
|
|
|
interface ${1:`vim_snippets#Filename("", "untitled")`} ${2}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet imp
|
|
|
|
implements ${1}
|
|
|
|
snippet ext
|
|
|
|
extends ${1}
|
|
|
|
snippet if
|
|
|
|
if (${1:true}) {
|
|
|
|
${2}
|
|
|
|
}
|
|
|
|
snippet ife
|
|
|
|
if (${1:true}) {
|
|
|
|
${2}
|
|
|
|
} else {
|
|
|
|
${3}
|
|
|
|
}
|
|
|
|
snippet el
|
|
|
|
else
|
|
|
|
snippet sw
|
|
|
|
switch (${1}) {
|
|
|
|
${2}
|
|
|
|
}
|
|
|
|
snippet cs
|
|
|
|
case ${1}:
|
|
|
|
${2}
|
|
|
|
snippet de
|
|
|
|
default:
|
|
|
|
${1}
|
|
|
|
snippet for
|
|
|
|
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
|
|
|
|
${4:$1[$2]}
|
|
|
|
}
|
|
|
|
snippet fore
|
|
|
|
for (final ${2:item} in ${1:itemList}) {
|
2013-07-17 19:06:05 -04:00
|
|
|
${3}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet wh
|
|
|
|
while (${1:/* condition */}) {
|
2013-07-17 19:06:05 -04:00
|
|
|
${2}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet dowh
|
|
|
|
do {
|
2013-07-17 19:06:05 -04:00
|
|
|
${2}
|
2012-08-16 23:41:25 -04:00
|
|
|
} while (${1:/* condition */});
|
|
|
|
snippet as
|
|
|
|
assert(${1:/* condition */});
|
|
|
|
snippet try
|
|
|
|
try {
|
|
|
|
${2}
|
|
|
|
} catch (${1:Exception e}) {
|
|
|
|
}
|
|
|
|
snippet tryf
|
|
|
|
try {
|
|
|
|
${2}
|
|
|
|
} catch (${1:Exception e}) {
|
|
|
|
} finally {
|
|
|
|
}
|