1
0
Fork 0
mirror of synced 2024-12-27 00:53:20 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/dart.snippets

83 lines
1.1 KiB
Text
Raw Normal View History

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