aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-08-16 09:53:04 +0200
committerGitHub <noreply@github.com>2022-08-16 09:53:04 +0200
commite8caaab6bfdee32fc49321926bc71eabae5aaeaa (patch)
treef9a4d928eadb9c5a84ae3d05d1e46371fbcacd8a /runtime/ftplugin
parentda13ed43cb3593f6d50e08fc6e5f26760da63f84 (diff)
downloadrneovim-e8caaab6bfdee32fc49321926bc71eabae5aaeaa.tar.gz
rneovim-e8caaab6bfdee32fc49321926bc71eabae5aaeaa.tar.bz2
rneovim-e8caaab6bfdee32fc49321926bc71eabae5aaeaa.zip
vim-patch:e1f3fd1d02e3 (#19796)
Update runtime files https://github.com/vim/vim/commit/e1f3fd1d02e3f5fe6d2b6d82687c6846b8e500f8
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/elixir.vim20
1 files changed, 19 insertions, 1 deletions
diff --git a/runtime/ftplugin/elixir.vim b/runtime/ftplugin/elixir.vim
index 3b38051d08..c423c2acb7 100644
--- a/runtime/ftplugin/elixir.vim
+++ b/runtime/ftplugin/elixir.vim
@@ -1,11 +1,29 @@
" Elixir filetype plugin
" Language: Elixir
" Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
-" Last Change: 2022 Apr 20
+" Last Change: 2022 August 10
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
+let s:save_cpo = &cpo
+set cpo&vim
+
+" Matchit support
+if exists('loaded_matchit') && !exists('b:match_words')
+ let b:match_ignorecase = 0
+
+ let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' .
+ \ ':' .
+ \ '\<\%(else\|catch\|after\|rescue\)\:\@!\>' .
+ \ ':' .
+ \ '\:\@<!\<end\>' .
+ \ ',{:},\[:\],(:)'
+endif
+
setlocal commentstring=#\ %s
+
+let &cpo = s:save_cpo
+unlet s:save_cpo