File tree 1 file changed +26
-26
lines changed
1 file changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,32 @@ function! GetHaskellIndent()
140
140
endif
141
141
endif
142
142
143
+ " { foo :: Int
144
+ " >>,
145
+ "
146
+ " |
147
+ " ...
148
+ " >>,
149
+ if l: line = ~ ' ^\s*,'
150
+ if s: isInBlock (l: hlstack )
151
+ normal ! 0
152
+ call search (' ,' , ' cW' )
153
+ let l: n = s: getNesting (s: getHLStack ())
154
+ call search (' [([{]' , ' bW' )
155
+
156
+ while l: n != s: getNesting (s: getHLStack ())
157
+ call search (' [([{]' , ' bW' )
158
+ endwhile
159
+
160
+ return col (' .' ) - 1
161
+ else
162
+ let l: s = s: indentGuard (match (l: line , ' ,' ), l: prevline )
163
+ if l: s > -1
164
+ return l: s
165
+ end
166
+ endif
167
+ endif
168
+
143
169
" operator at end of previous line
144
170
if l: prevline = ~ ' [!#$%&*+./<>?@\\^|~-]\s*$'
145
171
return match (l: prevline , ' \S' ) + &shiftwidth
@@ -363,32 +389,6 @@ function! GetHaskellIndent()
363
389
endif
364
390
endif
365
391
366
- " { foo :: Int
367
- " >>,
368
- "
369
- " |
370
- " ...
371
- " >>,
372
- if l: line = ~ ' ^\s*,'
373
- if s: isInBlock (l: hlstack )
374
- normal ! 0
375
- call search (' ,' , ' cW' )
376
- let l: n = s: getNesting (s: getHLStack ())
377
- call search (' [([{]' , ' bW' )
378
-
379
- while l: n != s: getNesting (s: getHLStack ())
380
- call search (' [([{]' , ' bW' )
381
- endwhile
382
-
383
- return col (' .' ) - 1
384
- else
385
- let l: s = s: indentGuard (match (l: line , ' ,' ), l: prevline )
386
- if l: s > -1
387
- return l: s
388
- end
389
- endif
390
- endif
391
-
392
392
" |
393
393
" ...
394
394
" >>|
You can’t perform that action at this time.
0 commit comments