diff --git a/indent/haskell.vim b/indent/haskell.vim index 54f244a..bdbe92d 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 16:24:02. " ============================================================================= if exists('b:did_indent') @@ -174,7 +174,7 @@ function! GetHaskellIndent() abort endif endif - if line =~# '\v\\case\s*%(--.*)?$' + if line =~# '\v\\\s*\s*%(--.*)?$' return match(line, '\v^\s*%(|.*)?\s*\zs') + &shiftwidth endif