File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 34
34
if ! exists (' g:haskell_indent_let' )
35
35
" let x = 0 in
36
36
" >>>>x
37
+ "
38
+ " let x = 0
39
+ " y = 1
37
40
let g: haskell_indent_let = 4
38
41
endif
39
42
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
+
40
49
if ! exists (' g:haskell_indent_where' )
41
50
" where f :: Int -> Int
42
51
" >>>>>>f x = x
@@ -208,6 +217,9 @@ function! GetHaskellIndent()
208
217
"
209
218
" let x = 1
210
219
" >>>>y = 2
220
+ "
221
+ " let x = 1
222
+ " y 2
211
223
if l: prevline = ~ ' \C\<let\>\s\+.\+$'
212
224
if l: line = ~ ' \C^\s*\<let\>'
213
225
let l: s = match (l: prevline , ' \C\<let\>' )
@@ -219,11 +231,16 @@ function! GetHaskellIndent()
219
231
if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
220
232
return l: s + g: haskell_indent_in
221
233
endif
222
- else
234
+ elseif l: line = ~ ' \s=\s '
223
235
let l: s = match (l: prevline , ' \C\<let\>' )
224
236
if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
225
237
return l: s + g: haskell_indent_let
226
238
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
227
244
endif
228
245
endif
229
246
You can’t perform that action at this time.
0 commit comments