summaryrefslogtreecommitdiffstats
path: root/syntax/yats/es6-string.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/es6-string.vim')
-rw-r--r--syntax/yats/es6-string.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/es6-string.vim b/syntax/yats/es6-string.vim
index 99749bfd..4e63d164 100644
--- a/syntax/yats/es6-string.vim
+++ b/syntax/yats/es6-string.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName String nextgroup=typescriptGlobalStringDot,typescriptFuncCallArg
syntax match typescriptGlobalStringDot /\./ contained nextgroup=typescriptStringStaticMethod,typescriptProp
syntax keyword typescriptStringStaticMethod contained fromCharCode fromCodePoint raw nextgroup=typescriptFuncCallArg
@@ -18,3 +15,4 @@ syntax keyword typescriptStringMethod contained valueOf nextgroup=typescriptFunc
syntax cluster props add=typescriptStringMethod
if exists("did_typescript_hilink") | HiLink typescriptStringMethod Keyword
endif
+endif