if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1 " Vim syntax file " Language: Vue.js " Maintainer: Eduardo San Martin Morote if exists("b:current_syntax") finish endif if !exists("s:syntaxes") " Search available syntax files. function s:search_syntaxes(...) let syntaxes = {} let names = a:000 for name in names let syntaxes[name] = 0 endfor for path in split(&runtimepath, ',') if isdirectory(path . '/syntax') for name in names let syntaxes[name] = syntaxes[name] || filereadable(path . '/syntax/' . name . '.vim') endfor endif endfor return syntaxes endfunction let s:syntaxes = s:search_syntaxes('pug', 'slm', 'coffee', 'stylus', 'sass', 'scss', 'less') endif syntax include @HTML syntax/html.vim if exists("b:current_syntax") unlet b:current_syntax endif syntax region html keepend start=/^