summaryrefslogtreecommitdiffstats
path: root/syntax/yats/web-location.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/web-location.vim')
-rw-r--r--syntax/yats/web-location.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/web-location.vim b/syntax/yats/web-location.vim
index 3cd08f7f..29efd9cc 100644
--- a/syntax/yats/web-location.vim
+++ b/syntax/yats/web-location.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 typescriptBOMLocationProp contained href protocol host hostname port
syntax keyword typescriptBOMLocationProp contained pathname search hash username password
syntax keyword typescriptBOMLocationProp contained origin
@@ -12,3 +9,4 @@ syntax keyword typescriptBOMLocationMethod contained assign reload replace toStr
syntax cluster props add=typescriptBOMLocationMethod
if exists("did_typescript_hilink") | HiLink typescriptBOMLocationMethod Keyword
endif
+endif