summaryrefslogtreecommitdiffstats
path: root/syntax/yats/event.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/event.vim')
-rw-r--r--syntax/yats/event.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/event.vim b/syntax/yats/event.vim
index f86b4b18..6c196719 100644
--- a/syntax/yats/event.vim
+++ b/syntax/yats/event.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 typescriptAnimationEvent contained animationend animationiteration
syntax keyword typescriptAnimationEvent contained animationstart beginEvent endEvent
syntax keyword typescriptAnimationEvent contained repeatEvent
@@ -161,3 +158,4 @@ syntax keyword typescriptServiceWorkerEvent contained install activate fetch
syntax cluster events add=typescriptServiceWorkerEvent
if exists("did_typescript_hilink") | HiLink typescriptServiceWorkerEvent Title
endif
+endif