File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed
Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,11 @@ function! GetHaskellIndent()
300300 if l: prevline = ~ ' \C\<where\>\s\+\S\+.*$'
301301 if l: line = ~ ' ^\s*[=-]>\s' && l: prevline = ~ ' :: '
302302 return match (l: prevline , ' :: ' )
303+ elseif l: line = ~ ' ^\s*|\s'
304+ let l: s = match (l: prevline , ' \C\<where\>' )
305+ if s: isSYN (' haskellWhere' , v: lnum - 1 , l: s + 1 )
306+ return l: s + g: haskell_indent_where + g: haskell_indent_guard
307+ endif
303308 else
304309 let l: s = match (l: prevline , ' \C\<where\>' )
305310 if s: isSYN (' haskellWhere' , v: lnum - 1 , l: s + 1 )
Original file line number Diff line number Diff line change 1+ where countUntilClosed (x: xs)
2+ | x
Original file line number Diff line number Diff line change 1+ where countUntilClosed (x: xs)
Original file line number Diff line number Diff line change 1+ o | x
2+ :saveas ! result.hs
3+ :q !
You can’t perform that action at this time.
0 commit comments