summaryrefslogtreecommitdiffstats
path: root/syntax/yats/web-network.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/web-network.vim')
-rw-r--r--syntax/yats/web-network.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/web-network.vim b/syntax/yats/web-network.vim
index 497e10d2..f46efd09 100644
--- a/syntax/yats/web-network.vim
+++ b/syntax/yats/web-network.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 NetworkInformation
syntax keyword typescriptBOMNetworkProp contained downlink downlinkMax effectiveType
syntax keyword typescriptBOMNetworkProp contained rtt type
syntax cluster props add=typescriptBOMNetworkProp
if exists("did_typescript_hilink") | HiLink typescriptBOMNetworkProp Keyword
endif
+endif