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 |
Eisuke Kawashima | fbbaa6e | 2025-04-16 18:20:59 +0200 | [diff] [blame] | 5 | " 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121) |
Bram Moolenaar | 9fbdbb8 | 2022-09-27 17:30:34 +0100 | [diff] [blame] | 6 | |
| 7 | if exists("b:did_ftplugin") |
| 8 | finish |
| 9 | endif |
| 10 | let b:did_ftplugin = 1 |
| 11 | |
Eisuke Kawashima | fbbaa6e | 2025-04-16 18:20:59 +0200 | [diff] [blame] | 12 | let s:cpo_save = &cpo |
| 13 | set cpo&vim |
| 14 | |
Bram Moolenaar | 9fbdbb8 | 2022-09-27 17:30:34 +0100 | [diff] [blame] | 15 | setlocal shiftwidth=2 softtabstop=2 expandtab |
| 16 | |
| 17 | setlocal comments=:<%!-- |
| 18 | setlocal commentstring=<%!--\ %s\ --%> |
| 19 | |
| 20 | let b:undo_ftplugin = 'set sw< sts< et< com< cms<' |
Chris Vincent | 8967f6c | 2023-08-09 09:49:44 -0500 | [diff] [blame] | 21 | |
| 22 | " HTML: thanks to Johannes Zellner and Benji Fisher. |
| 23 | if exists("loaded_matchit") && !exists("b:match_words") |
| 24 | let b:match_ignorecase = 1 |
Jason King | 3ac2d3d | 2023-08-29 15:11:55 -0500 | [diff] [blame] | 25 | let b:match_words = '<%\{-}!--:--%\{-}>,' .. |
Chris Vincent | 8967f6c | 2023-08-09 09:49:44 -0500 | [diff] [blame] | 26 | \ '<:>,' .. |
| 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" |
| 31 | endif |
Eisuke Kawashima | fbbaa6e | 2025-04-16 18:20:59 +0200 | [diff] [blame] | 32 | |
| 33 | let &cpo = s:cpo_save |
| 34 | unlet s:cpo_save |