summaryrefslogtreecommitdiffstats
path: root/syntax/yats/web-history.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/yats/web-history.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/yats/web-history.vim b/syntax/yats/web-history.vim
index 80993067..42283af3 100644
--- a/syntax/yats/web-history.vim
+++ b/syntax/yats/web-history.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 typescriptBOMHistoryProp contained length current next previous state
syntax keyword typescriptBOMHistoryProp contained scrollRestoration
syntax cluster props add=typescriptBOMHistoryProp
@@ -11,3 +8,4 @@ syntax keyword typescriptBOMHistoryMethod contained back forward go pushState re
syntax cluster props add=typescriptBOMHistoryMethod
if exists("did_typescript_hilink") | HiLink typescriptBOMHistoryMethod Keyword
endif
+endif