blob: 2f53d22ee6a83a34723d9a01534cd26548d6faaa [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
Eisuke Kawashimafbbaa6e2025-04-16 18:20:59 +02005" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121)
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +01006
7if exists("b:did_ftplugin")
8 finish
9endif
10let b:did_ftplugin = 1
11
Eisuke Kawashimafbbaa6e2025-04-16 18:20:59 +020012let s:cpo_save = &cpo
13set cpo&vim
14
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +010015setlocal shiftwidth=2 softtabstop=2 expandtab
16
17setlocal comments=:<%!--
18setlocal commentstring=<%!--\ %s\ --%>
19
20let b:undo_ftplugin = 'set sw< sts< et< com< cms<'
Chris Vincent8967f6c2023-08-09 09:49:44 -050021
22" HTML: thanks to Johannes Zellner and Benji Fisher.
23if exists("loaded_matchit") && !exists("b:match_words")
24 let b:match_ignorecase = 1
Jason King3ac2d3d2023-08-29 15:11:55 -050025 let b:match_words = '<%\{-}!--:--%\{-}>,' ..
Chris Vincent8967f6c2023-08-09 09:49:44 -050026 \ '<:>,' ..
27 \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' ..
28 \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' ..
29 \ '<\@<=\([^/!][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
30 let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
31endif
Eisuke Kawashimafbbaa6e2025-04-16 18:20:59 +020032
33let &cpo = s:cpo_save
34unlet s:cpo_save