Skip to content

Commit dddd4bc

Browse files
committed
stricter where indentation
1 parent 735f95e commit dddd4bc

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
@@ -245,7 +245,10 @@ function! GetHaskellIndent()
245245
if l:line =~ '^\s*[=-]>\s' && l:prevline =~ ' :: '
246246
return match(l:prevline, ':: ')
247247
else
248-
return match(l:prevline, '\C\<where\>') + g:haskell_indent_where
248+
let l:s = match(l:prevline, '\C\<where\>')
249+
if s:isSYN('haskellWhere', v:lnum - 1, l:s + 1)
250+
return l:s + g:haskell_indent_where
251+
endif
249252
endif
250253
endif
251254

0 commit comments

Comments
 (0)