diff --git a/syntax/vue.vim b/syntax/vue.vim
index 7ed7d76..3e1ca68 100644
--- a/syntax/vue.vim
+++ b/syntax/vue.vim
@@ -28,6 +28,8 @@ let s:use_sass = exists("g:vim_vue_plugin_use_sass")
\ && g:vim_vue_plugin_use_sass == 1
let s:use_coffee = exists("g:vim_vue_plugin_use_coffee")
\ && g:vim_vue_plugin_use_coffee == 1
+let s:use_typescript = exists("g:vim_vue_plugin_use_typescript")
+ \ && g:vim_vue_plugin_use_typescript == 1
"}}}
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -123,6 +125,11 @@ endif
if s:use_coffee
call s:LoadFullSyntax('@htmlCoffeeScript', 'coffee')
endif
+
+" If TypeScript is enabled, load the syntax.
+if s:use_typescript
+ call s:LoadFullSyntax('@TypeScript', 'typescript')
+endif
"}}}
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -162,6 +169,11 @@ syntax region coffeeVueScript fold
\ end=++
\ keepend contains=@htmlCoffeeScript,jsImport,jsExport,vueTag
+syntax region typescriptVueScript fold
+ \ start=++
+ \ keepend contains=@TypeScript,vueTag
+
syntax region cssLessVueStyle fold
\ start=++