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/web-location.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 syntax/yats/web-location.vim (limited to 'syntax/yats/web-location.vim') diff --git a/syntax/yats/web-location.vim b/syntax/yats/web-location.vim new file mode 100644 index 00000000..3cd08f7f --- /dev/null +++ b/syntax/yats/web-location.vim @@ -0,0 +1,14 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 + finish +endif + +syntax keyword typescriptBOMLocationProp contained href protocol host hostname port +syntax keyword typescriptBOMLocationProp contained pathname search hash username password +syntax keyword typescriptBOMLocationProp contained origin +syntax cluster props add=typescriptBOMLocationProp +if exists("did_typescript_hilink") | HiLink typescriptBOMLocationProp Keyword +endif +syntax keyword typescriptBOMLocationMethod contained assign reload replace toString nextgroup=typescriptFuncCallArg +syntax cluster props add=typescriptBOMLocationMethod +if exists("did_typescript_hilink") | HiLink typescriptBOMLocationMethod Keyword +endif -- cgit v1.2.3