Skip to content

Commit 7e85170

Browse files
committed
#73 prevent indentation after comment
1 parent 3683530 commit 7e85170

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

indent/haskell.vim

+3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ function! GetHaskellIndent()
136136
if l:line =~ '^\s*--'
137137
return match(l:prevline, '-- ')
138138
endif
139+
if l:prevline =~ '^\s*--'
140+
return match(l:prevline, '\S')
141+
endif
139142

140143
" { foo :: Int
141144
" >>,

0 commit comments

Comments
 (0)