summaryrefslogtreecommitdiffstats
path: root/syntax/yats/ecma-402.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/ecma-402.vim')
-rw-r--r--syntax/yats/ecma-402.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/ecma-402.vim b/syntax/yats/ecma-402.vim
index ae5a806e..cbfd62b8 100644
--- a/syntax/yats/ecma-402.vim
+++ b/syntax/yats/ecma-402.vim
@@ -1,10 +1,8 @@
-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 Intl
syntax keyword typescriptIntlMethod contained Collator DateTimeFormat NumberFormat nextgroup=typescriptFuncCallArg
syntax keyword typescriptIntlMethod contained PluralRules nextgroup=typescriptFuncCallArg
syntax cluster props add=typescriptIntlMethod
if exists("did_typescript_hilink") | HiLink typescriptIntlMethod Keyword
endif
+endif