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/basic/patch.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 syntax/basic/patch.vim (limited to 'syntax/basic/patch.vim') diff --git a/syntax/basic/patch.vim b/syntax/basic/patch.vim new file mode 100644 index 00000000..ea4adfa2 --- /dev/null +++ b/syntax/basic/patch.vim @@ -0,0 +1,9 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 + finish +endif + +" patch for generated code +syntax keyword typescriptGlobal Promise + \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline +syntax keyword typescriptGlobal Map WeakMap + \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline -- cgit v1.2.3