summaryrefslogtreecommitdiffstats
path: root/syntax/yats/dom-form.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yats/dom-form.vim')
-rw-r--r--syntax/yats/dom-form.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/dom-form.vim b/syntax/yats/dom-form.vim
index d5ca56af..5c800f4a 100644
--- a/syntax/yats/dom-form.vim
+++ b/syntax/yats/dom-form.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 typescriptDOMFormProp contained acceptCharset action elements encoding
syntax keyword typescriptDOMFormProp contained enctype length method name target
syntax cluster props add=typescriptDOMFormProp
@@ -11,3 +8,4 @@ syntax keyword typescriptDOMFormMethod contained reportValidity reset submit nex
syntax cluster props add=typescriptDOMFormMethod
if exists("did_typescript_hilink") | HiLink typescriptDOMFormMethod Keyword
endif
+endif