@@ -176,26 +176,6 @@ function! s:get_base_indent(lnum, text)
176
176
endif
177
177
endfunction
178
178
179
- function ! elixir#indent#handle_following_trailing_do (lnum, text, prev_nb_lnum, prev_nb_text)
180
- if s: ends_with (a: prev_nb_text , s: keyword (' do' ), a: prev_nb_lnum )
181
- if s: starts_with (a: text , s: keyword (' end' ), a: lnum )
182
- return indent (a: prev_nb_lnum )
183
- else
184
- return indent (a: prev_nb_lnum ) + s: sw ()
185
- end
186
- else
187
- return -1
188
- endif
189
- endfunction
190
-
191
- function ! elixir#indent#handle_following_trailing_rocket (lnum, text, prev_nb_lnum, prev_nb_text)
192
- if s: ends_with (a: prev_nb_text , ' ->' , a: prev_nb_lnum )
193
- return indent (a: prev_nb_lnum ) + s: sw ()
194
- else
195
- return -1
196
- endif
197
- endfunction
198
-
199
179
function ! elixir#indent#handle_following_trailing_binary_operator (lnum, text, prev_nb_lnum, prev_nb_text)
200
180
let binary_operator = ' \%(=\|<>\|>>>\|<=\|||\|+\|\~\~\~\|-\|&&\|<<<\|/\|\^\^\^\|\*\)'
201
181
@@ -250,15 +230,6 @@ function! elixir#indent#handle_starts_with_end(lnum, text, _prev_nb_lnum, _prev_
250
230
endif
251
231
endfunction
252
232
253
- function ! elixir#indent#handle_starts_with_mid_or_end_block_keyword (lnum, text, _prev_nb_lnum, _prev_nb_text)
254
- if s: starts_with (a: text , s: keyword (' catch\|rescue\|after\|else' ), a: lnum )
255
- let pair_lnum = searchpair (s: keyword (' with\|receive\|try\|if\|fn' ), s: keyword (' catch\|rescue\|after\|else' ).' \zs' , s: keyword (' end' ), ' bnW' , " line('.') == " . line (' .' ) . " || elixir#indent#searchpair_back_skip()" )
256
- return indent (pair_lnum)
257
- else
258
- return -1
259
- endif
260
- endfunction
261
-
262
233
function ! elixir#indent#handle_starts_with_close_bracket (lnum, text, _prev_nb_lnum, _prev_nb_text)
263
234
if s: starts_with (a: text , ' \%(\]\|}\|)\)' , a: lnum )
264
235
let pair_lnum = searchpair (' \%(\[\|{\|(\)' , ' ' , ' \%(\]\|}\|)\)' , ' bnW' , " line('.') == " . line (' .' ) . " || elixir#indent#searchpair_back_skip()" )
0 commit comments