summaryrefslogtreecommitdiffstats
path: root/syntax/yats/web-fetch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/web-fetch.vim')
-rw-r--r--syntax/yats/web-fetch.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/web-fetch.vim b/syntax/yats/web-fetch.vim
index 2330b272..2e5c2370 100644
--- a/syntax/yats/web-fetch.vim
+++ b/syntax/yats/web-fetch.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 typescriptGlobal containedin=typescriptIdentifierName Headers Request
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Response
syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName fetch nextgroup=typescriptFuncCallArg
@@ -30,3 +27,4 @@ syntax keyword typescriptResponseMethod contained clone nextgroup=typescriptFunc
syntax cluster props add=typescriptResponseMethod
if exists("did_typescript_hilink") | HiLink typescriptResponseMethod Keyword
endif
+endif