heex.vim 830 B

12345678910111213141516171819202122232425262728
  1. " Elixir filetype plugin
  2. " Language: HEEx
  3. " Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
  4. " Last Change: 2022 Sep 21
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. setlocal shiftwidth=2 softtabstop=2 expandtab
  10. setlocal comments=:<%!--
  11. setlocal commentstring=<%!--\ %s\ --%>
  12. let b:undo_ftplugin = 'set sw< sts< et< com< cms<'
  13. " HTML: thanks to Johannes Zellner and Benji Fisher.
  14. if exists("loaded_matchit") && !exists("b:match_words")
  15. let b:match_ignorecase = 1
  16. let b:match_words = '<%\{-}!--:--%\{-}>,' ..
  17. \ '<:>,' ..
  18. \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' ..
  19. \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' ..
  20. \ '<\@<=\([^/!][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
  21. let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
  22. endif