File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 3434if ! exists (' g:haskell_indent_let' )
3535 " let x = 0 in
3636 " >>>>x
37+ "
38+ " let x = 0
39+ " y = 1
3740 let g: haskell_indent_let = 4
3841endif
3942
43+ if ! exists (' g:haskell_indent_let_no_in' )
44+ " let x = 0
45+ " x
46+ let g: haskell_indent_let_no_in = 4
47+ endif
48+
4049if ! exists (' g:haskell_indent_where' )
4150 " where f :: Int -> Int
4251 " >>>>>>f x = x
@@ -208,6 +217,9 @@ function! GetHaskellIndent()
208217 "
209218 " let x = 1
210219 " >>>>y = 2
220+ "
221+ " let x = 1
222+ " y 2
211223 if l: prevline = ~ ' \C\<let\>\s\+.\+$'
212224 if l: line = ~ ' \C^\s*\<let\>'
213225 let l: s = match (l: prevline , ' \C\<let\>' )
@@ -219,11 +231,16 @@ function! GetHaskellIndent()
219231 if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
220232 return l: s + g: haskell_indent_in
221233 endif
222- else
234+ elseif l: line = ~ ' \s=\s '
223235 let l: s = match (l: prevline , ' \C\<let\>' )
224236 if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
225237 return l: s + g: haskell_indent_let
226238 endif
239+ else
240+ let l: s = match (l: prevline , ' \C\<let\>' )
241+ if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
242+ return l: s + g: haskell_indent_let_no_in
243+ endif
227244 endif
228245 endif
229246
You can’t perform that action at this time.
0 commit comments