From d3718d9d21f18ce2251cf584d6f5c4585fc20acd Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 9 Sep 2008 22:37:43 +1200 Subject: [PATCH] bugfix for haskell delimiters --- doc/NERD_commenter.txt | 2 ++ plugin/NERD_commenter.vim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 66296b2..326736f 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -1220,6 +1220,8 @@ incompatibility with vim7.2. Thanks also to JaGoTerr for posting the issue. Thanks to Elias Pipping for sending me a bug report about haskell commenting. +Thanks to mntnoe for pointing out incorrect delimiters for haskell. + Not to forget! Thanks to the following people for sending me new filetypes to support :D diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 1760f84..41a3203 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -379,7 +379,7 @@ function s:SetUpForNewFiletype(filetype, forceReset) elseif a:filetype == "gtkrc" call s:MapDelimiters('#', '') elseif a:filetype == "haskell" - call s:MapDelimitersWithAlternative('{-','-}', '--', '--') + call s:MapDelimitersWithAlternative('{-','-}', '--', '') elseif a:filetype == "hb" call s:MapDelimiters('#', '') elseif a:filetype == "h"