Skip to content

Commit d903059

Browse files
committed
stricter do indentation
1 parent dddd4bc commit d903059

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

indent/haskell.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ function! GetHaskellIndent()
255255
" do foo
256256
" >>>bar
257257
if l:prevline =~ '\C\<do\>\s\+\S\+.*$'
258-
return match(l:prevline, '\C\<do\>') + g:haskell_indent_do
258+
let l:s = match(l:prevline, '\C\<do\>')
259+
if s:isSYN('haskellKeyword', v:lnum - 1, l:s + 1)
260+
return l:s + g:haskell_indent_do
261+
endif
259262
endif
260263

261264
" case foo of

0 commit comments

Comments
 (0)