indent after operator

This commit is contained in:
raichoo 2014-08-18 15:27:54 +02:00
parent 0b35c2b82b
commit 786cb6fd4d

View file

@ -106,24 +106,14 @@ function! GethaskellIndent()
let l:s = match(l:prevline, ':')
if l:s > 0
return l:s + 3
else
return match(l:prevline, '\S')
endif
elseif l:prevline =~ '\s\+[!#$%&*+./<>?@\\^|~-]\+\s*$'
let l:s = match(l:prevline, '=')
endif
if l:prevline =~ '\s\+[!#$%&*+./<>?@\\^|~-]\+\s*$'
let l:s = match(l:prevline, '\S')
if l:s > 0
return l:s + 2
endif
let l:s = match(l:prevline, ':')
if l:s > 0
return l:s + 3
endif
let l:s = match(l:prevline, '|')
if l:s > 0
return match(l:prevline, '\S')
endif
endif
if l:prevline =~ '[{([][^})\]]\+$'