This commit is contained in:
Adam Stankiewicz
2016-05-13 15:54:46 +02:00
parent 22f6f3b6d3
commit 84593f2d7f
4 changed files with 17 additions and 8 deletions

View File

@@ -319,7 +319,10 @@ function! GetHaskellIndent()
" foo
" >>{
if l:line =~ '^\s*{' && l:prevline !~ '^{'
return match(l:prevline, '\S') + &shiftwidth
let l:s = match(l:prevline, '\S')
if l:s >= 0
return l:s + &shiftwidth
endif
endif
" in foo