mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 14:33:50 -05:00
29 lines
815 B
VimL
29 lines
815 B
VimL
let files = filter(globpath(&rtp, 'ftplugin/mako.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
|
|
|
|
" Vim filetype plugin file
|
|
" Language: Mako
|
|
" Maintainer: Randy Stauner <randy@magnificent-tears.com>
|
|
" Last Change: 2019-09-06
|
|
" Version: 0.2
|
|
|
|
if exists("b:did_ftplugin") | finish | endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=:##
|
|
setlocal commentstring=##%s
|
|
|
|
if exists("loaded_matchit")
|
|
let b:match_ignorecase = 1
|
|
let b:match_words = "<:>," .
|
|
\ "<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>," .
|
|
\ "<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>," .
|
|
\ "<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>"
|
|
endif
|
|
|
|
endif
|