summaryrefslogtreecommitdiffstats
path: root/syntax/yats
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats')
-rw-r--r--syntax/yats/css.vim5
-rw-r--r--syntax/yats/dom-document.vim5
-rw-r--r--syntax/yats/dom-elem.vim5
-rw-r--r--syntax/yats/dom-event.vim5
-rw-r--r--syntax/yats/dom-form.vim5
-rw-r--r--syntax/yats/dom-node.vim5
-rw-r--r--syntax/yats/dom-storage.vim5
-rw-r--r--syntax/yats/ecma-402.vim5
-rw-r--r--syntax/yats/es6-array.vim5
-rw-r--r--syntax/yats/es6-date.vim5
-rw-r--r--syntax/yats/es6-function.vim5
-rw-r--r--syntax/yats/es6-json.vim5
-rw-r--r--syntax/yats/es6-map.vim5
-rw-r--r--syntax/yats/es6-math.vim5
-rw-r--r--syntax/yats/es6-number.vim5
-rw-r--r--syntax/yats/es6-object.vim5
-rw-r--r--syntax/yats/es6-promise.vim5
-rw-r--r--syntax/yats/es6-proxy.vim5
-rw-r--r--syntax/yats/es6-reflect.vim5
-rw-r--r--syntax/yats/es6-regexp.vim5
-rw-r--r--syntax/yats/es6-set.vim5
-rw-r--r--syntax/yats/es6-string.vim5
-rw-r--r--syntax/yats/es6-symbol.vim5
-rw-r--r--syntax/yats/event.vim5
-rw-r--r--syntax/yats/node.vim5
-rw-r--r--syntax/yats/test.vim5
-rw-r--r--syntax/yats/typescript.vim5
-rw-r--r--syntax/yats/web-blob.vim5
-rw-r--r--syntax/yats/web-console.vim5
-rw-r--r--syntax/yats/web-crypto.vim5
-rw-r--r--syntax/yats/web-encoding.vim5
-rw-r--r--syntax/yats/web-fetch.vim5
-rw-r--r--syntax/yats/web-geo.vim5
-rw-r--r--syntax/yats/web-history.vim5
-rw-r--r--syntax/yats/web-location.vim5
-rw-r--r--syntax/yats/web-navigator.vim5
-rw-r--r--syntax/yats/web-network.vim5
-rw-r--r--syntax/yats/web-payment.vim5
-rw-r--r--syntax/yats/web-service-worker.vim5
-rw-r--r--syntax/yats/web-window.vim5
-rw-r--r--syntax/yats/web-xhr.vim5
-rw-r--r--syntax/yats/web.vim5
42 files changed, 210 insertions, 0 deletions
diff --git a/syntax/yats/css.vim b/syntax/yats/css.vim
index 219fc93f..c4f3ae6e 100644
--- a/syntax/yats/css.vim
+++ b/syntax/yats/css.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/css.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptDOMStyle contained alignContent alignItems alignSelf animation
diff --git a/syntax/yats/dom-document.vim b/syntax/yats/dom-document.vim
index 2dfea5ec..3d6d9762 100644
--- a/syntax/yats/dom-document.vim
+++ b/syntax/yats/dom-document.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/dom-document.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptDOMDocProp contained activeElement body cookie defaultView
diff --git a/syntax/yats/dom-elem.vim b/syntax/yats/dom-elem.vim
index 0680b7a7..32349a33 100644
--- a/syntax/yats/dom-elem.vim
+++ b/syntax/yats/dom-elem.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/dom-elem.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptDOMElemAttrs contained accessKey clientHeight clientLeft
diff --git a/syntax/yats/dom-event.vim b/syntax/yats/dom-event.vim
index f13af726..698cd0e1 100644
--- a/syntax/yats/dom-event.vim
+++ b/syntax/yats/dom-event.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/dom-event.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptDOMEventTargetMethod contained addEventListener removeEventListener nextgroup=typescriptEventFuncCallArg
diff --git a/syntax/yats/dom-form.vim b/syntax/yats/dom-form.vim
index 222b3e15..eecd8453 100644
--- a/syntax/yats/dom-form.vim
+++ b/syntax/yats/dom-form.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/dom-form.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptDOMFormProp contained acceptCharset action elements encoding
diff --git a/syntax/yats/dom-node.vim b/syntax/yats/dom-node.vim
index d55e82e1..32e4142a 100644
--- a/syntax/yats/dom-node.vim
+++ b/syntax/yats/dom-node.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/dom-node.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptDOMNodeProp contained attributes baseURI baseURIObject childNodes
diff --git a/syntax/yats/dom-storage.vim b/syntax/yats/dom-storage.vim
index 21564a21..c34ab017 100644
--- a/syntax/yats/dom-storage.vim
+++ b/syntax/yats/dom-storage.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/dom-storage.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptDOMStorage contained sessionStorage localStorage
diff --git a/syntax/yats/ecma-402.vim b/syntax/yats/ecma-402.vim
index 2114485c..98c103c2 100644
--- a/syntax/yats/ecma-402.vim
+++ b/syntax/yats/ecma-402.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/ecma-402.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Intl
diff --git a/syntax/yats/es6-array.vim b/syntax/yats/es6-array.vim
index cc6ba71f..2b658f25 100644
--- a/syntax/yats/es6-array.vim
+++ b/syntax/yats/es6-array.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-array.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Array nextgroup=typescriptGlobalArrayDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-date.vim b/syntax/yats/es6-date.vim
index ea2653cd..cd91fa53 100644
--- a/syntax/yats/es6-date.vim
+++ b/syntax/yats/es6-date.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-date.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Date nextgroup=typescriptGlobalDateDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-function.vim b/syntax/yats/es6-function.vim
index 0ff39379..14c137ae 100644
--- a/syntax/yats/es6-function.vim
+++ b/syntax/yats/es6-function.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-function.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Function
diff --git a/syntax/yats/es6-json.vim b/syntax/yats/es6-json.vim
index 682e8f06..b01a878d 100644
--- a/syntax/yats/es6-json.vim
+++ b/syntax/yats/es6-json.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-json.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName JSON nextgroup=typescriptGlobalJSONDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-map.vim b/syntax/yats/es6-map.vim
index 247d1112..ec618928 100644
--- a/syntax/yats/es6-map.vim
+++ b/syntax/yats/es6-map.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-map.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Map WeakMap
diff --git a/syntax/yats/es6-math.vim b/syntax/yats/es6-math.vim
index 03460ec1..fd86a190 100644
--- a/syntax/yats/es6-math.vim
+++ b/syntax/yats/es6-math.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-math.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Math nextgroup=typescriptGlobalMathDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-number.vim b/syntax/yats/es6-number.vim
index 109e29d3..a090e49b 100644
--- a/syntax/yats/es6-number.vim
+++ b/syntax/yats/es6-number.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-number.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Number nextgroup=typescriptGlobalNumberDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-object.vim b/syntax/yats/es6-object.vim
index 3043542d..55c6f943 100644
--- a/syntax/yats/es6-object.vim
+++ b/syntax/yats/es6-object.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-object.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Object nextgroup=typescriptGlobalObjectDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-promise.vim b/syntax/yats/es6-promise.vim
index 46851ed9..6c1b4e8a 100644
--- a/syntax/yats/es6-promise.vim
+++ b/syntax/yats/es6-promise.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-promise.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Promise nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-proxy.vim b/syntax/yats/es6-proxy.vim
index 9bbd9b66..9451dbe5 100644
--- a/syntax/yats/es6-proxy.vim
+++ b/syntax/yats/es6-proxy.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-proxy.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Proxy
diff --git a/syntax/yats/es6-reflect.vim b/syntax/yats/es6-reflect.vim
index 2f3f6ead..6e3de79e 100644
--- a/syntax/yats/es6-reflect.vim
+++ b/syntax/yats/es6-reflect.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-reflect.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Reflect
diff --git a/syntax/yats/es6-regexp.vim b/syntax/yats/es6-regexp.vim
index 9a16ba82..a6c50632 100644
--- a/syntax/yats/es6-regexp.vim
+++ b/syntax/yats/es6-regexp.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-regexp.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName RegExp nextgroup=typescriptGlobalRegExpDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-set.vim b/syntax/yats/es6-set.vim
index 56048f3e..024743bc 100644
--- a/syntax/yats/es6-set.vim
+++ b/syntax/yats/es6-set.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-set.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Set WeakSet
diff --git a/syntax/yats/es6-string.vim b/syntax/yats/es6-string.vim
index d7275a1d..f4ef7f36 100644
--- a/syntax/yats/es6-string.vim
+++ b/syntax/yats/es6-string.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-string.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName String nextgroup=typescriptGlobalStringDot,typescriptFuncCallArg
diff --git a/syntax/yats/es6-symbol.vim b/syntax/yats/es6-symbol.vim
index 51b2621e..2cfb65dd 100644
--- a/syntax/yats/es6-symbol.vim
+++ b/syntax/yats/es6-symbol.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/es6-symbol.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Symbol nextgroup=typescriptGlobalSymbolDot,typescriptFuncCallArg
diff --git a/syntax/yats/event.vim b/syntax/yats/event.vim
index 36a22683..31d0eab2 100644
--- a/syntax/yats/event.vim
+++ b/syntax/yats/event.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/event.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptAnimationEvent contained animationend animationiteration
diff --git a/syntax/yats/node.vim b/syntax/yats/node.vim
index 25b4e26f..e8bc4b8b 100644
--- a/syntax/yats/node.vim
+++ b/syntax/yats/node.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/node.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName global process
diff --git a/syntax/yats/test.vim b/syntax/yats/test.vim
index 7a68aa7f..a8fe7881 100644
--- a/syntax/yats/test.vim
+++ b/syntax/yats/test.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/test.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName describe
diff --git a/syntax/yats/typescript.vim b/syntax/yats/typescript.vim
index df99073e..9d91a1ce 100644
--- a/syntax/yats/typescript.vim
+++ b/syntax/yats/typescript.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/typescript.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Function Boolean
diff --git a/syntax/yats/web-blob.vim b/syntax/yats/web-blob.vim
index 7badb6da..fedb2417 100644
--- a/syntax/yats/web-blob.vim
+++ b/syntax/yats/web-blob.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-blob.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Blob BlobBuilder
diff --git a/syntax/yats/web-console.vim b/syntax/yats/web-console.vim
index f3e7c73a..d8b1ded4 100644
--- a/syntax/yats/web-console.vim
+++ b/syntax/yats/web-console.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-console.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName console
diff --git a/syntax/yats/web-crypto.vim b/syntax/yats/web-crypto.vim
index 4a9442c3..91033242 100644
--- a/syntax/yats/web-crypto.vim
+++ b/syntax/yats/web-crypto.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-crypto.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptCryptoGlobal containedin=typescriptIdentifierName crypto
diff --git a/syntax/yats/web-encoding.vim b/syntax/yats/web-encoding.vim
index 077eaf9e..8188b7e1 100644
--- a/syntax/yats/web-encoding.vim
+++ b/syntax/yats/web-encoding.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-encoding.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptEncodingGlobal containedin=typescriptIdentifierName TextEncoder
diff --git a/syntax/yats/web-fetch.vim b/syntax/yats/web-fetch.vim
index 9fd87e45..3c9019b6 100644
--- a/syntax/yats/web-fetch.vim
+++ b/syntax/yats/web-fetch.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-fetch.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Headers Request
diff --git a/syntax/yats/web-geo.vim b/syntax/yats/web-geo.vim
index c439be29..b9b3447d 100644
--- a/syntax/yats/web-geo.vim
+++ b/syntax/yats/web-geo.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-geo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Geolocation
diff --git a/syntax/yats/web-history.vim b/syntax/yats/web-history.vim
index 99cc5ccc..d170d37d 100644
--- a/syntax/yats/web-history.vim
+++ b/syntax/yats/web-history.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-history.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptBOMHistoryProp contained length current next previous state
diff --git a/syntax/yats/web-location.vim b/syntax/yats/web-location.vim
index 65f8869d..0d92f7bd 100644
--- a/syntax/yats/web-location.vim
+++ b/syntax/yats/web-location.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-location.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptBOMLocationProp contained href protocol host hostname port
diff --git a/syntax/yats/web-navigator.vim b/syntax/yats/web-navigator.vim
index 48fe9f7d..2a408b0f 100644
--- a/syntax/yats/web-navigator.vim
+++ b/syntax/yats/web-navigator.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-navigator.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptBOMNavigatorProp contained battery buildID connection cookieEnabled
diff --git a/syntax/yats/web-network.vim b/syntax/yats/web-network.vim
index d717da5c..71cd6fca 100644
--- a/syntax/yats/web-network.vim
+++ b/syntax/yats/web-network.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-network.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName NetworkInformation
diff --git a/syntax/yats/web-payment.vim b/syntax/yats/web-payment.vim
index 74805967..2154a14a 100644
--- a/syntax/yats/web-payment.vim
+++ b/syntax/yats/web-payment.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-payment.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptGlobal containedin=typescriptIdentifierName PaymentRequest
diff --git a/syntax/yats/web-service-worker.vim b/syntax/yats/web-service-worker.vim
index a44950fb..9f497472 100644
--- a/syntax/yats/web-service-worker.vim
+++ b/syntax/yats/web-service-worker.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-service-worker.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptServiceWorkerProp contained controller ready
diff --git a/syntax/yats/web-window.vim b/syntax/yats/web-window.vim
index eb6257fb..04d57e98 100644
--- a/syntax/yats/web-window.vim
+++ b/syntax/yats/web-window.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-window.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName applicationCache
diff --git a/syntax/yats/web-xhr.vim b/syntax/yats/web-xhr.vim
index b8a8f56e..e88b6456 100644
--- a/syntax/yats/web-xhr.vim
+++ b/syntax/yats/web-xhr.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web-xhr.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptXHRGlobal containedin=typescriptIdentifierName XMLHttpRequest
diff --git a/syntax/yats/web.vim b/syntax/yats/web.vim
index 37bf5559..4b4c1bdd 100644
--- a/syntax/yats/web.vim
+++ b/syntax/yats/web.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/yats/web.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptBOM containedin=typescriptIdentifierName AbortController