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: 2 additions & 2 deletions 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 16:24:02.
" =============================================================================

if exists('b:did_indent')
Expand Down Expand Up @@ -174,7 +174,7 @@ function! GetHaskellIndent() abort
endif
endif

if line =~# '\v\\case\s*%(--.*)?$'
if line =~# '\v\\\s*<case>\s*%(--.*)?$'
return match(line, '\v^\s*%(<where>|.*<let>)?\s*\zs') + &shiftwidth
endif

Expand Down