2015-07-18 23:05:45 +02:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
|
|
|
|
2013-09-12 17:31:56 +02:00
|
|
|
if (exists("b:did_ftplugin"))
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
|
|
|
|
|
|
|
" Matchit support
|
|
|
|
if exists("loaded_matchit") && !exists("b:match_words")
|
|
|
|
let b:match_ignorecase = 0
|
|
|
|
|
2016-01-22 09:08:00 +01:00
|
|
|
let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' .
|
2013-09-12 17:31:56 +02:00
|
|
|
\ ':' .
|
|
|
|
\ '\<\%(else\|elsif\|catch\|after\|rescue\)\:\@!\>' .
|
|
|
|
\ ':' .
|
|
|
|
\ '\:\@<!\<end\>' .
|
|
|
|
\ ',{:},\[:\],(:)'
|
|
|
|
endif
|
|
|
|
|
|
|
|
setlocal comments=:#
|
|
|
|
setlocal commentstring=#\ %s
|
2015-07-18 23:05:45 +02:00
|
|
|
|
|
|
|
endif
|