Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion indent/haskell.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" Filename: indent/haskell.vim
" Author: itchyny
" License: MIT License
" Last Change: 2023/11/07 19:40:39.
" Last Change: 2024/08/04 14:20:20.
" =============================================================================

if exists('b:did_indent')
Expand Down Expand Up @@ -471,6 +471,8 @@ function! s:indent_bar() abort
return match(line, '\v^\s*%(<where>)?.*[^|]\zs\|[^|].*\=')
elseif line =~# '\v<data>.*\='
return match(line, '\v^.*<data>.*\zs\=')
elseif line =~# '\v<if>\s*\|'
return match(line, '\v<if>\s*\zs\|')
elseif line =~# '\v^\s*<where>\s*%(--.*)?$' && indent(i) < indent || line =~# '^\S'
return indent + &shiftwidth
elseif line =~# '\v^\s*<where>\s+\S'
Expand Down