Skip to content

Commit 2a95942

Browse files
committed
comment indentation
1 parent 48396f6 commit 2a95942

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

indent/haskell.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ function! GetHaskellIndent()
133133
endif
134134

135135
" comment indentation
136-
if l:prevline =~ '^\s*--'
137-
return match(l:prevline, '\S')
136+
if l:line =~ '^\s*--'
137+
let l:s = match(l:prevline, '-- ')
138+
if l:s > 0
139+
return l:s
140+
endif
138141
endif
139142

140143
" operator at end of previous line

0 commit comments

Comments
 (0)