summaryrefslogtreecommitdiffstats
path: root/syntax/vue.vim
diff options
context:
space:
mode:
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