From 0b6184aea1bfee95a1fe082010de396310e4240a Mon Sep 17 00:00:00 2001 From: ujihisa Date: Sun, 29 Dec 2013 19:45:37 -0800 Subject: [PATCH] Add MoonScript snippets. --- neosnippets/moon.snip | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 neosnippets/moon.snip diff --git a/neosnippets/moon.snip b/neosnippets/moon.snip new file mode 100644 index 0000000..b7ce2cd --- /dev/null +++ b/neosnippets/moon.snip @@ -0,0 +1,24 @@ +snippet helloworld +options head + print 'Hello world!' + +snippet map +options word + [${0:TARGET} for ${1:x} in ${2:xs}] + +snippet p +options head + moon.p ${0} + +snippet defn + ${1:f} = (${2:args}) -> + ${0:TARGET} + +snippet defm +options head + ${1:f}: (${2:args}) => + ${0:TARGET} + +snippet require +options head + ${1:moon} = require '$1'