From 48e07bc5014fecfdff24f75124a65634c216c9e2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 15:54:31 +0200 Subject: Improve guard to support concatenated files --- syntax/yats/ecma-402.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'syntax/yats/ecma-402.vim') 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 -- cgit v1.2.3