summaryrefslogtreecommitdiffstats
path: root/syntax/yats/web-navigator.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/web-navigator.vim')
-rw-r--r--syntax/yats/web-navigator.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/web-navigator.vim b/syntax/yats/web-navigator.vim
index cb826d82..db32a416 100644
--- a/syntax/yats/web-navigator.vim
+++ b/syntax/yats/web-navigator.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 typescriptBOMNavigatorProp contained battery buildID connection cookieEnabled
syntax keyword typescriptBOMNavigatorProp contained doNotTrack maxTouchPoints oscpu
syntax keyword typescriptBOMNavigatorProp contained productSub push serviceWorker
@@ -22,3 +19,4 @@ syntax keyword typescriptServiceWorkerMethod contained register nextgroup=typesc
syntax cluster props add=typescriptServiceWorkerMethod
if exists("did_typescript_hilink") | HiLink typescriptServiceWorkerMethod Keyword
endif
+endif