From a973f6bc4692fd5e15a55f2ab922629d5a9aec5b Mon Sep 17 00:00:00 2001 From: Felix Jung Date: Thu, 5 Jun 2014 17:41:17 +0200 Subject: [PATCH] Initial commit --- snippets/julia.snippets | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 snippets/julia.snippets diff --git a/snippets/julia.snippets b/snippets/julia.snippets new file mode 100644 index 0000000..b92c8c4 --- /dev/null +++ b/snippets/julia.snippets @@ -0,0 +1,36 @@ +snippet fun + function ${1:functionname}(${2:parameters}) + ${0} + end + +# For loop iterating over iterable container +snippet forin + for ${1} in ${2} + ${0} + end + +# Standard for loop +snippet for + for ${1} = ${2} + ${0} + end + +# Nested for loop +snippet fornest + for ${1} = ${2}, ${3} = ${4} + ${0} + end + +# While loop +snippet while + while ${1} ${2:<=} ${3} + ${0} + end + +# Try catch +snippet try + try + ${1} + catch ${2} + ${0} + end