Files
vim-polyglot/syntax/basic/patch.vim
2021-01-01 22:30:41 +01:00

10 lines
407 B
VimL

if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/patch.vim')
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