[typescript] Extra attributes on the script tag

This commit is contained in:
Esdras Mayrink
2017-03-14 11:10:34 -03:00
committed by GitHub
parent 3339eab69e
commit 4f837e5027

View File

@@ -54,7 +54,7 @@ syntax include @TS syntax/typescript.vim
if exists("b:current_syntax") if exists("b:current_syntax")
unlet b:current_syntax unlet b:current_syntax
endif endif
syntax region typescript keepend matchgroup=Delimiter start=/<script\( ts\| lang="ts"\| lang="typescript"\)>/ end="</script>" contains=@TS fold syntax region typescript keepend matchgroup=Delimiter start=/<script \_[^>]*\(lang=\("\|'\)[^\2]*\(ts\|typescript\)[^\2]*\2\|ts\)\_[^>]*>/ end="</script>" contains=@TS fold
if s:syntaxes.coffee if s:syntaxes.coffee
syntax include @COFFEE syntax/coffee.vim syntax include @COFFEE syntax/coffee.vim