Bram Moolenaar | 9fbdbb8 | 2022-09-27 17:30:34 +0100 | [diff] [blame] | 1 | " Elixir filetype plugin |
| 2 | " Language: HEEx |
| 3 | " Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com> |
| 4 | " Last Change: 2022 Sep 21 |
| 5 | |
| 6 | if exists("b:did_ftplugin") |
| 7 | finish |
| 8 | endif |
| 9 | let b:did_ftplugin = 1 |
| 10 | |
| 11 | setlocal shiftwidth=2 softtabstop=2 expandtab |
| 12 | |
| 13 | setlocal comments=:<%!-- |
| 14 | setlocal commentstring=<%!--\ %s\ --%> |
| 15 | |
| 16 | let b:undo_ftplugin = 'set sw< sts< et< com< cms<' |
Chris Vincent | 8967f6c | 2023-08-09 09:49:44 -0500 | [diff] [blame] | 17 | |
| 18 | " HTML: thanks to Johannes Zellner and Benji Fisher. |
| 19 | if exists("loaded_matchit") && !exists("b:match_words") |
| 20 | let b:match_ignorecase = 1 |
| 21 | let b:match_words = '<!--:-->,' .. |
| 22 | \ '<:>,' .. |
| 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" |
| 27 | endif |