annotate runtime/ftplugin/elixir.vim @ 31883:f9dbb07cad5a v9.0.1274

patch 9.0.1274: FIRRTL files are not recognized Commit: https://github.com/vim/vim/commit/685bf83b73d0fe6fd36bb2949bebd6aae66a139e Author: Amaan Qureshi <amaanq12@gmail.com> Date: Thu Feb 2 13:30:13 2023 +0000 patch 9.0.1274: FIRRTL files are not recognized Problem: FIRRTL files are not recognized. Solution: Add a pattern for FIRRTL files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/11931)
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Feb 2023 14:45:04 +0100
parents 1e91e26ceebf
children 5491229840a3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Elixir filetype plugin
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Elixir
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29756
diff changeset
4 " Last Change: 2022 Sep 20
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("b:did_ftplugin")
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let b:did_ftplugin = 1
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
11 let s:save_cpo = &cpo
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
12 set cpo&vim
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
13
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
14 " Matchit support
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
15 if exists('loaded_matchit') && !exists('b:match_words')
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
16 let b:match_ignorecase = 0
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
17
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
18 let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' .
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
19 \ ':' .
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
20 \ '\<\%(else\|catch\|after\|rescue\)\:\@!\>' .
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
21 \ ':' .
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
22 \ '\:\@<!\<end\>' .
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
23 \ ',{:},\[:\],(:)'
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
24 endif
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
25
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29756
diff changeset
26 setlocal shiftwidth=2 softtabstop=2 expandtab iskeyword+=!,?
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29756
diff changeset
27 setlocal comments=:#
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 setlocal commentstring=#\ %s
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
29
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29756
diff changeset
30 let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms<'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29756
diff changeset
31
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
32 let &cpo = s:save_cpo
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28620
diff changeset
33 unlet s:save_cpo