diff options
Diffstat (limited to 'syntax/yats/web-crypto.vim')
-rw-r--r-- | syntax/yats/web-crypto.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/web-crypto.vim b/syntax/yats/web-crypto.vim index b410ba56..61d9af30 100644 --- a/syntax/yats/web-crypto.vim +++ b/syntax/yats/web-crypto.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 typescriptCryptoGlobal containedin=typescriptIdentifierName crypto if exists("did_typescript_hilink") | HiLink typescriptCryptoGlobal Structure endif @@ -18,3 +15,4 @@ syntax keyword typescriptCryptoMethod contained getRandomValues nextgroup=typesc syntax cluster props add=typescriptCryptoMethod if exists("did_typescript_hilink") | HiLink typescriptCryptoMethod Keyword endif +endif |