summaryrefslogtreecommitdiffstats
path: root/syntax/yats/es6-proxy.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/es6-proxy.vim')
-rw-r--r--syntax/yats/es6-proxy.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/yats/es6-proxy.vim b/syntax/yats/es6-proxy.vim
index 1c6398ec..6bfd693c 100644
--- a/syntax/yats/es6-proxy.vim
+++ b/syntax/yats/es6-proxy.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-proxy.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 Proxy
syntax keyword typescriptProxyAPI contained getOwnPropertyDescriptor getOwnPropertyNames
@@ -14,5 +9,3 @@ syntax keyword typescriptProxyAPI contained preventExtensions has hasOwn get set
syntax keyword typescriptProxyAPI contained iterate ownKeys apply construct
if exists("did_typescript_hilink") | HiLink typescriptProxyAPI Keyword
endif
-
-endif