summaryrefslogtreecommitdiffstats
path: root/syntax/yats/es6-map.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/yats/es6-map.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/es6-map.vim b/syntax/yats/es6-map.vim
index b9f2d47a..c8d837e3 100644
--- a/syntax/yats/es6-map.vim
+++ b/syntax/yats/es6-map.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 Map WeakMap
syntax keyword typescriptES6MapProp contained size
syntax cluster props add=typescriptES6MapProp
@@ -12,3 +9,4 @@ syntax keyword typescriptES6MapMethod contained keys set values nextgroup=typesc
syntax cluster props add=typescriptES6MapMethod
if exists("did_typescript_hilink") | HiLink typescriptES6MapMethod Keyword
endif
+endif