mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 22:43:49 -05:00
Switch typescript provider, closes #428
This commit is contained in:
16
syntax/yats/dom-storage.vim
Normal file
16
syntax/yats/dom-storage.vim
Normal file
@@ -0,0 +1,16 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
syntax keyword typescriptDOMStorage contained sessionStorage localStorage
|
||||
if exists("did_typescript_hilink") | HiLink typescriptDOMStorage Keyword
|
||||
endif
|
||||
syntax keyword typescriptDOMStorageProp contained length
|
||||
syntax cluster props add=typescriptDOMStorageProp
|
||||
if exists("did_typescript_hilink") | HiLink typescriptDOMStorageProp Keyword
|
||||
endif
|
||||
syntax keyword typescriptDOMStorageMethod contained getItem key setItem removeItem nextgroup=typescriptFuncCallArg
|
||||
syntax keyword typescriptDOMStorageMethod contained clear nextgroup=typescriptFuncCallArg
|
||||
syntax cluster props add=typescriptDOMStorageMethod
|
||||
if exists("did_typescript_hilink") | HiLink typescriptDOMStorageMethod Keyword
|
||||
endif
|
||||
Reference in New Issue
Block a user