summaryrefslogtreecommitdiffstats
path: root/syntax/yats/es6-object.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/es6-object.vim')
-rw-r--r--syntax/yats/es6-object.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/yats/es6-object.vim b/syntax/yats/es6-object.vim
index 1b2f9c33..750571d7 100644
--- a/syntax/yats/es6-object.vim
+++ b/syntax/yats/es6-object.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'syntax/yats/es6-object.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Object nextgroup=typescriptGlobalObjectDot,typescriptFuncCallArg
syntax match typescriptGlobalObjectDot /\./ contained nextgroup=typescriptObjectStaticMethod,typescriptProp
@@ -24,5 +19,3 @@ syntax keyword typescriptObjectMethod contained setPrototypeOf nextgroup=typescr
syntax cluster props add=typescriptObjectMethod
if exists("did_typescript_hilink") | HiLink typescriptObjectMethod Keyword
endif
-
-endif