summaryrefslogtreecommitdiffstats
path: root/syntax/yats/web-xhr.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/yats/web-xhr.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/web-xhr.vim b/syntax/yats/web-xhr.vim
index 60769f21..6a6379f7 100644
--- a/syntax/yats/web-xhr.vim
+++ b/syntax/yats/web-xhr.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 typescriptXHRGlobal containedin=typescriptIdentifierName XMLHttpRequest
if exists("did_typescript_hilink") | HiLink typescriptXHRGlobal Structure
endif
@@ -16,3 +13,4 @@ syntax keyword typescriptXHRMethod contained open overrideMimeType send setReque
syntax cluster props add=typescriptXHRMethod
if exists("did_typescript_hilink") | HiLink typescriptXHRMethod Keyword
endif
+endif