summaryrefslogtreecommitdiffstats
path: root/syntax/yats/es6-reflect.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/es6-reflect.vim')
-rw-r--r--syntax/yats/es6-reflect.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/es6-reflect.vim b/syntax/yats/es6-reflect.vim
index d417e895..acf4cef2 100644
--- a/syntax/yats/es6-reflect.vim
+++ b/syntax/yats/es6-reflect.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 Reflect
syntax keyword typescriptReflectMethod contained apply construct defineProperty deleteProperty nextgroup=typescriptFuncCallArg
syntax keyword typescriptReflectMethod contained enumerate get getOwnPropertyDescriptor nextgroup=typescriptFuncCallArg
@@ -10,3 +7,4 @@ syntax keyword typescriptReflectMethod contained preventExtensions set setProtot
syntax cluster props add=typescriptReflectMethod
if exists("did_typescript_hilink") | HiLink typescriptReflectMethod Keyword
endif
+endif