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/es6-math.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'syntax/yats/es6-math.vim') diff --git a/syntax/yats/es6-math.vim b/syntax/yats/es6-math.vim index 20444a5a..e0396df0 100644 --- a/syntax/yats/es6-math.vim +++ b/syntax/yats/es6-math.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 Math nextgroup=typescriptGlobalMathDot,typescriptFuncCallArg syntax match typescriptGlobalMathDot /\./ contained nextgroup=typescriptMathStaticProp,typescriptMathStaticMethod,typescriptProp syntax keyword typescriptMathStaticProp contained E LN10 LN2 LOG10E LOG2E PI SQRT1_2 @@ -16,3 +13,4 @@ syntax keyword typescriptMathStaticMethod contained min pow random round sign si syntax keyword typescriptMathStaticMethod contained sinh sqrt tan tanh trunc nextgroup=typescriptFuncCallArg if exists("did_typescript_hilink") | HiLink typescriptMathStaticMethod Keyword endif +endif -- cgit v1.2.3