vim-snippets/snippets/falcon.snippets

72 lines
843 B
Plaintext
Raw Normal View History

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