Skip to content

Commit 1d9da5e

Browse files
committed
use less greedy regex for let .. in indentation
1 parent 6e92143 commit 1d9da5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/haskell.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function! GetHaskellIndent()
205205

206206
" let x = 1 in
207207
" >>>>x
208-
if l:prevline =~ '\C\<let\>\s\+.\+\<in\>\?$' && l:line !~ '\C^\s*\<in\>'
208+
if l:prevline =~ '\C\<let\>.\{-}\<in\>\s*$' && l:line !~ '\C^\s*\<in\>'
209209
return match(l:prevline, '\C\<let\>') + g:haskell_indent_let
210210
endif
211211

0 commit comments

Comments
 (0)