From 1eb077c1f19f9166180190cb39e301dfbd73c21b Mon Sep 17 00:00:00 2001 From: raichoo Date: Thu, 11 Aug 2016 12:26:26 +0200 Subject: [PATCH] #73 fix indentation when pragmas and block comment occur --- indent/haskell.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indent/haskell.vim b/indent/haskell.vim index 38fdf1c..2ad51db 100644 --- a/indent/haskell.vim +++ b/indent/haskell.vim @@ -61,11 +61,11 @@ setlocal indentexpr=GetHaskellIndent() setlocal indentkeys=0{,0},0(,0),0[,0],!^F,o,O,0\=,0=where,0=let,0=deriving, function! s:isInBlock(hlstack) - return index(a:hlstack, 'haskellParens') > -1 || index(a:hlstack, 'haskellBrackets') > -1 || index(a:hlstack, 'haskellBlock') > -1 + return index(a:hlstack, 'haskellParens') > -1 || index(a:hlstack, 'haskellBrackets') > -1 || index(a:hlstack, 'haskellBlock') > -1 || index(a:hlstack, 'haskellBlockComment') > -1 || index(a:hlstack, 'haskellPragma') > -1 endfunction function! s:getNesting(hlstack) - return filter(a:hlstack, 'v:val == "haskellBlock" || v:val == "haskellBrackets" || v:val == "haskellParens"') + return filter(a:hlstack, 'v:val == "haskellBlock" || v:val == "haskellBrackets" || v:val == "haskellParens" || v:val == "haskellBlockComment" || v:val == "haskellPragma" ') endfunction function! s:getHLStack()