indent after operator
This commit is contained in:
parent
0b35c2b82b
commit
786cb6fd4d
1 changed files with 4 additions and 14 deletions
|
@ -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 =~ '[{([][^})\]]\+$'
|
||||
|
|
Loading…
Reference in a new issue