1
0
Fork 0
mirror of synced 2024-12-25 08:13:20 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/falcon.snippets

72 lines
807 B
Text
Raw Normal View History

2012-08-16 23:41:25 -04:00
snippet #!
#!/usr/bin/env falcon
2013-07-17 19:06:05 -04:00
# Import
2012-08-16 23:41:25 -04:00
snippet imp
import ${0:module}
2012-08-16 23:41:25 -04:00
# Function
snippet fun
2013-07-17 19:06:05 -04:00
function ${2:function_name}(${3})
${0}
2013-07-17 19:06:05 -04:00
end
2012-08-16 23:41:25 -04:00
# Class
snippet class
class ${1:class_name}(${2:class_params})
${0:/* members/methods */}
2012-08-16 23:41:25 -04:00
end
2013-07-17 19:06:05 -04:00
# If
2012-08-16 23:41:25 -04:00
snippet if
if $1
${0}
2012-08-16 23:41:25 -04:00
end
# If else
snippet ife
if $1
${0}
2012-08-16 23:41:25 -04:00
else
2013-07-17 19:06:05 -04:00
${1}
2012-08-16 23:41:25 -04:00
end
2013-07-17 19:06:05 -04:00
# If else if
snippet eif
elif $1
${0}
2012-08-16 23:41:25 -04:00
# Switch case
snippet switch
switch ${1:expression}
case ${2:item}
case ${0:item}
2013-07-17 19:06:05 -04:00
default
2012-08-16 23:41:25 -04:00
end
# Select
2013-07-17 19:06:05 -04:00
snippet select
2012-08-16 23:41:25 -04:00
select ${1:variable}
case ${2:TypeSpec}
case ${0:TypeSpec}
2012-08-16 23:41:25 -04:00
default
end
# For/in Loop
snippet forin
for ${1:element} in ${2:container}
${0}
2012-08-16 23:41:25 -04:00
end
# For/to Loop
snippet forto
for ${1:lowerbound} to ${2:upperbound}
${0}
2012-08-16 23:41:25 -04:00
end
# While Loop
snippet wh
2012-08-16 23:41:25 -04:00
while ${1:conidition}
${0}
2012-08-16 23:41:25 -04:00
end