mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-16 07:23:48 -05:00
Improve guard to support concatenated files
This commit is contained in:
@@ -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 typescriptDOMStorage contained sessionStorage localStorage
|
||||
if exists("did_typescript_hilink") | HiLink typescriptDOMStorage Keyword
|
||||
endif
|
||||
@@ -14,3 +11,4 @@ syntax keyword typescriptDOMStorageMethod contained clear nextgroup=typescriptFu
|
||||
syntax cluster props add=typescriptDOMStorageMethod
|
||||
if exists("did_typescript_hilink") | HiLink typescriptDOMStorageMethod Keyword
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user