Fix TS support

Just add an attribute to the script tag, like this: <script ts></script>
lang="typescript" confundes the webpack loader
This commit is contained in:
Esdras Mayrink
2017-03-11 17:11:06 -03:00
committed by GitHub
parent 404787aae2
commit 51b18f8b90

View File

@@ -54,7 +54,7 @@ syntax include @TS syntax/typescript.vim
if exists("b:current_syntax")
unlet b:current_syntax
endif
syntax region typescript keepend matchgroup=Delimiter start=/<script\( lang="typescript"\)\?\( type="text\/typescript"\)\?>/ end="</script>" contains=@TS fold
syntax region typescript keepend matchgroup=Delimiter start=/<script ts>/ end="</script>" contains=@TS fold
if s:syntaxes.coffee
syntax include @COFFEE syntax/coffee.vim