blob: becc071c37921bb931216530f1c03677c003766a [file] [log] [blame]
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +01001" Elixir filetype plugin
2" Language: HEEx
3" Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
4" Last Change: 2022 Sep 21
5
6if exists("b:did_ftplugin")
7 finish
8endif
9let b:did_ftplugin = 1
10
11setlocal shiftwidth=2 softtabstop=2 expandtab
12
13setlocal comments=:<%!--
14setlocal commentstring=<%!--\ %s\ --%>
15
16let b:undo_ftplugin = 'set sw< sts< et< com< cms<'
Chris Vincent8967f6c2023-08-09 09:49:44 -050017
18" HTML: thanks to Johannes Zellner and Benji Fisher.
19if exists("loaded_matchit") && !exists("b:match_words")
20 let b:match_ignorecase = 1
Jason King3ac2d3d2023-08-29 15:11:55 -050021 let b:match_words = '<%\{-}!--:--%\{-}>,' ..
Chris Vincent8967f6c2023-08-09 09:49:44 -050022 \ '<:>,' ..
23 \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' ..
24 \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' ..
25 \ '<\@<=\([^/!][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
26 let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
27endif