28620
|
1 " Elixir filetype plugin
|
|
2 " Language: Elixir
|
|
3 " Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
|
29756
|
4 " Last Change: 2022 August 10
|
28620
|
5
|
|
6 if exists("b:did_ftplugin")
|
|
7 finish
|
|
8 endif
|
|
9 let b:did_ftplugin = 1
|
|
10
|
29756
|
11 let s:save_cpo = &cpo
|
|
12 set cpo&vim
|
|
13
|
|
14 " Matchit support
|
|
15 if exists('loaded_matchit') && !exists('b:match_words')
|
|
16 let b:match_ignorecase = 0
|
|
17
|
|
18 let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' .
|
|
19 \ ':' .
|
|
20 \ '\<\%(else\|catch\|after\|rescue\)\:\@!\>' .
|
|
21 \ ':' .
|
|
22 \ '\:\@<!\<end\>' .
|
|
23 \ ',{:},\[:\],(:)'
|
|
24 endif
|
|
25
|
28620
|
26 setlocal commentstring=#\ %s
|
29756
|
27
|
|
28 let &cpo = s:save_cpo
|
|
29 unlet s:save_cpo
|