File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -197,11 +197,20 @@ function! GetHaskellIndent()
197
197
" >>>>y = 2
198
198
if l: prevline = ~ ' \C\<let\>\s\+.\+$'
199
199
if l: line = ~ ' \C^\s*\<let\>'
200
- return match (l: prevline , ' \C\<let\>' )
200
+ let l: s = match (l: prevline , ' \C\<let\>' )
201
+ if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
202
+ return l: s
203
+ endif
201
204
elseif l: line = ~ ' \C^\s*\<in\>'
202
- return match (l: prevline , ' \C\<let\>' ) + g: haskell_indent_in
205
+ let l: s = match (l: prevline , ' \C\<let\>' )
206
+ if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
207
+ return l: s + g: haskell_indent_in
208
+ endif
203
209
else
204
- return match (l: prevline , ' \C\<let\>' ) + g: haskell_indent_let
210
+ let l: s = match (l: prevline , ' \C\<let\>' )
211
+ if s: isSYN (' haskellLet' , v: lnum - 1 , l: s + 1 )
212
+ return l: s + g: haskell_indent_let
213
+ endif
205
214
endif
206
215
endif
207
216
You can’t perform that action at this time.
0 commit comments