diff options
author | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:03:25 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:03:25 +0200 |
commit | e573b3020c032400eed60b649a2cbf55266e6bb0 (patch) | |
tree | 8f572394ac8433529c7a8e70d160a2fbe8268b4e /vim/bundle/vim-snippets/snippets/falcon.snippets | |
parent | b8c667bd64b3edd38d56c63c5bd1db53a23b4499 (diff) | |
download | myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.gz myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.bz2 myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.zip |
Add current configurations from old repository
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/falcon.snippets')
-rw-r--r-- | vim/bundle/vim-snippets/snippets/falcon.snippets | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/vim/bundle/vim-snippets/snippets/falcon.snippets b/vim/bundle/vim-snippets/snippets/falcon.snippets new file mode 100644 index 0000000..c523980 --- /dev/null +++ b/vim/bundle/vim-snippets/snippets/falcon.snippets @@ -0,0 +1,71 @@ +snippet #! + #!/usr/bin/env falcon + +# Import +snippet imp + import ${0:module} + +# Function +snippet fun + function ${2:function_name}(${3}) + ${0} + end + +# Class +snippet class + class ${1:class_name}(${2:class_params}) + ${0:/* members/methods */} + end + +# If +snippet if + if ${1:condition} + ${0} + end + +# If else +snippet ife + if ${1:condition} + ${0} + else + ${1} + end + +# If else if +snippet eif + elif ${1:condition} + ${0} + +# Switch case +snippet switch + switch ${1:expression} + case ${2:item} + case ${0:item} + default + end + +# Select +snippet select + select ${1:variable} + case ${2:TypeSpec} + case ${0:TypeSpec} + default + end + +# For/in Loop +snippet forin + for ${1:element} in ${2:container} + ${0} + end + +# For/to Loop +snippet forto + for ${1:lowerbound} to ${2:upperbound} + ${0} + end + +# While Loop +snippet wh + while ${1:conidition} + ${0} + end |