Mercurial > vim
annotate runtime/ftplugin/elixir.vim @ 33191:4efe5f797919 v9.0.1875
patch 9.0.1875: Vim9: improve test for disassemble + static
Commit: https://github.com/vim/vim/commit/28a60f898d5cd7023596b0e96a081b1573edc807
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Sep 5 20:42:18 2023 +0200
patch 9.0.1875: Vim9: improve test for disassemble + static
Problem: Vim9: improve test for disassemble + static
Solution: Add a Vim9 script disassemble test for an interface with
static members
closes: #13037
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Sep 2023 20:45:05 +0200 |
parents | 1e91e26ceebf |
children | 5491229840a3 |
rev | line source |
---|---|
28620 | 1 " Elixir filetype plugin |
2 " Language: Elixir | |
3 " Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com> | |
30547 | 4 " Last Change: 2022 Sep 20 |
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 | |
30547 | 26 setlocal shiftwidth=2 softtabstop=2 expandtab iskeyword+=!,? |
27 setlocal comments=:# | |
28620 | 28 setlocal commentstring=#\ %s |
29756 | 29 |
30547 | 30 let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms<' |
31 | |
29756 | 32 let &cpo = s:save_cpo |
33 unlet s:save_cpo |