let files = filter(globpath(&rtp, 'ftplugin/blade.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, 'blade') == -1 " Vim filetype plugin " Language: Blade (Laravel) " Maintainer: Jason Walton if exists('b:did_ftplugin') finish endif runtime! ftplugin/html.vim let b:did_ftplugin = 1 setlocal suffixesadd=.blade.php,.php setlocal includeexpr=substitute(v:fname,'\\.','/','g') setlocal path+=resources/views; setlocal include=\\w\\@' . \ ':' . \ '@\%(end\w\+\|stop\|show\|append\|overwrite\)' . \ ',{:},\[:\],(:)' let b:match_skip = 'synIDattr(synID(line("."), col("."), 0), "name") !=# "bladeKeyword"' let b:match_ignorecase = 0 endif endif