diff --git a/indent/haskell.vim b/indent/haskell.vim index 54f244a..f186fef 100644 --- a/indent/haskell.vim +++ b/indent/haskell.vim @@ -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') @@ -471,6 +471,8 @@ function! s:indent_bar() abort return match(line, '\v^\s*%()?.*[^|]\zs\|[^|].*\=') elseif line =~# '\v.*\=' return match(line, '\v^.*.*\zs\=') + elseif line =~# '\v\s*\|' + return match(line, '\v\s*\zs\|') elseif line =~# '\v^\s*\s*%(--.*)?$' && indent(i) < indent || line =~# '^\S' return indent + &shiftwidth elseif line =~# '\v^\s*\s+\S'