summaryrefslogtreecommitdiffstats
path: root/syntax/yats/dom-event.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/yats/dom-event.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/dom-event.vim b/syntax/yats/dom-event.vim
index e33547fc..a31be737 100644
--- a/syntax/yats/dom-event.vim
+++ b/syntax/yats/dom-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 typescriptDOMEventTargetMethod contained addEventListener removeEventListener nextgroup=typescriptEventFuncCallArg
syntax keyword typescriptDOMEventTargetMethod contained dispatchEvent waitUntil nextgroup=typescriptEventFuncCallArg
syntax cluster props add=typescriptDOMEventTargetMethod
@@ -65,3 +62,4 @@ syntax keyword typescriptDOMEventMethod contained stopPropagation respondWith de
syntax cluster props add=typescriptDOMEventMethod
if exists("did_typescript_hilink") | HiLink typescriptDOMEventMethod Keyword
endif
+endif