From 5919706b02587c8c0d7f184dc62ab5d9e9fa3085 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Sat, 20 Oct 2012 19:16:15 -0700 Subject: [PATCH] Added haskelll snip. --- autoload/neosnippet/snippets/haskell.snip | 22 ++++++++++++++++++++++ doc/neosnippet.txt | 1 + 2 files changed, 23 insertions(+) create mode 100644 autoload/neosnippet/snippets/haskell.snip diff --git a/autoload/neosnippet/snippets/haskell.snip b/autoload/neosnippet/snippets/haskell.snip new file mode 100644 index 0000000..dbdb3d7 --- /dev/null +++ b/autoload/neosnippet/snippets/haskell.snip @@ -0,0 +1,22 @@ +snippet import +abbr import qualified ... as ... + import qualified ${1} as ${2} + +snippet importOnly +abbr import ... (...) + import ${1} (${2}) + +snippet language +abbr {-# LANGUAGE ... #-} + {-# LANGUAGE ${1} #-} + +# hard-tab is necessary +snippet case +abbr case ... of + case ${1} of + ${2} -> ${0} + +snippet main +abbr main = do + main = do + ${0} diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 3b0a8eb..b0fcba5 100644 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -445,6 +445,7 @@ CHANGELOG *neosnippet-changelog* 2012-10-20 - Improved scala snip. +- Added haskell snip. 2012-10-19 - Fixed syntax highlight.