summaryrefslogtreecommitdiffstats
path: root/syntax/vue.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-09-27 19:57:29 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2017-09-27 19:57:29 +0200
commit8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8 (patch)
tree125734ac66307a962eeda16283355dde0d0fbd2e /syntax/vue.vim
parent9bfde7574aa89a91b80ed9c993fc000cfc11aae7 (diff)
downloadvim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.tar.gz
vim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.zip
Update
Diffstat (limited to 'syntax/vue.vim')
-rw-r--r--syntax/vue.vim22
1 files changed, 12 insertions, 10 deletions
diff --git a/syntax/vue.vim b/syntax/vue.vim
index bb9590e3..8af0a5b9 100644
--- a/syntax/vue.vim
+++ b/syntax/vue.vim
@@ -42,16 +42,18 @@ function! s:register_language(language, tag, ...)
endif
endfunction
-call s:register_language('pug', 'template', s:attr('lang', '\%(pug\|jade\)'))
-call s:register_language('slm', 'template')
-call s:register_language('handlebars', 'template')
-call s:register_language('haml', 'template')
-call s:register_language('typescript', 'script', '\%(lang=\("\|''\)[^\1]*\(ts\|typescript\)[^\1]*\1\|ts\)')
-call s:register_language('coffee', 'script')
-call s:register_language('stylus', 'style')
-call s:register_language('sass', 'style')
-call s:register_language('scss', 'style')
-call s:register_language('less', 'style')
+if !exists("g:vue_disable_pre_processors") || !g:vue_disable_pre_processors
+ call s:register_language('pug', 'template', s:attr('lang', '\%(pug\|jade\)'))
+ call s:register_language('slm', 'template')
+ call s:register_language('handlebars', 'template')
+ call s:register_language('haml', 'template')
+ call s:register_language('typescript', 'script', '\%(lang=\("\|''\)[^\1]*\(ts\|typescript\)[^\1]*\1\|ts\)')
+ call s:register_language('coffee', 'script')
+ call s:register_language('stylus', 'style')
+ call s:register_language('sass', 'style')
+ call s:register_language('scss', 'style')
+ call s:register_language('less', 'style')
+endif
syn region vueSurroundingTag contained start=+<\(script\|style\|template\)+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
syn keyword htmlSpecialTagName contained template