mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 20:43:52 -05:00
Update
This commit is contained in:
@@ -296,9 +296,20 @@ function! GetHaskellIndent()
|
||||
|
||||
"" where foo
|
||||
"" >>>>>>bar
|
||||
""
|
||||
"" where foo :: Int
|
||||
"" >>>>>>>>>>-> Int
|
||||
""
|
||||
"" where foo x
|
||||
"" >>>>>>>>|
|
||||
if l:prevline =~ '\C\<where\>\s\+\S\+.*$'
|
||||
if l:line =~ '^\s*[=-]>\s' && l:prevline =~ ' :: '
|
||||
return match(l:prevline, ':: ')
|
||||
elseif l:line =~ '^\s*|\s'
|
||||
let l:s = match(l:prevline, '\C\<where\>')
|
||||
if s:isSYN('haskellWhere', v:lnum - 1, l:s + 1)
|
||||
return l:s + g:haskell_indent_where + g:haskell_indent_guard
|
||||
endif
|
||||
else
|
||||
let l:s = match(l:prevline, '\C\<where\>')
|
||||
if s:isSYN('haskellWhere', v:lnum - 1, l:s + 1)
|
||||
|
||||
Reference in New Issue
Block a user