mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 20:13:51 -05:00
15 lines
604 B
VimL
15 lines
604 B
VimL
let files = filter(globpath(&rtp, 'syntax/yats/es6-function.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
|
|
|
|
syntax keyword typescriptGlobal containedin=typescriptIdentifierName Function
|
|
syntax keyword typescriptFunctionMethod contained apply bind call nextgroup=typescriptFuncCallArg
|
|
syntax cluster props add=typescriptFunctionMethod
|
|
if exists("did_typescript_hilink") | HiLink typescriptFunctionMethod Keyword
|
|
endif
|
|
|
|
endif
|