From 84ec4eedcdd2892249b5369f91a6dd1d12fef2fc Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 14:32:07 +0200 Subject: Switch typescript provider, closes #428 --- syntax/yats/dom-storage.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 syntax/yats/dom-storage.vim (limited to 'syntax/yats/dom-storage.vim') diff --git a/syntax/yats/dom-storage.vim b/syntax/yats/dom-storage.vim new file mode 100644 index 00000000..3664d1cb --- /dev/null +++ b/syntax/yats/dom-storage.vim @@ -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 -- cgit v1.2.3