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/es6-array.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 syntax/yats/es6-array.vim (limited to 'syntax/yats/es6-array.vim') diff --git a/syntax/yats/es6-array.vim b/syntax/yats/es6-array.vim new file mode 100644 index 00000000..36890b13 --- /dev/null +++ b/syntax/yats/es6-array.vim @@ -0,0 +1,18 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 + finish +endif + +syntax keyword typescriptGlobal containedin=typescriptIdentifierName Array nextgroup=typescriptGlobalArrayDot,typescriptFuncCallArg +syntax match typescriptGlobalArrayDot /\./ contained nextgroup=typescriptArrayStaticMethod,typescriptProp +syntax keyword typescriptArrayStaticMethod contained from isArray of nextgroup=typescriptFuncCallArg +if exists("did_typescript_hilink") | HiLink typescriptArrayStaticMethod Keyword +endif +syntax keyword typescriptArrayMethod contained concat copyWithin entries every fill nextgroup=typescriptFuncCallArg +syntax keyword typescriptArrayMethod contained filter find findIndex forEach indexOf nextgroup=typescriptFuncCallArg +syntax keyword typescriptArrayMethod contained includes join keys lastIndexOf map nextgroup=typescriptFuncCallArg +syntax keyword typescriptArrayMethod contained pop push reduce reduceRight reverse nextgroup=typescriptFuncCallArg +syntax keyword typescriptArrayMethod contained shift slice some sort splice toLocaleString nextgroup=typescriptFuncCallArg +syntax keyword typescriptArrayMethod contained toSource toString unshift nextgroup=typescriptFuncCallArg +syntax cluster props add=typescriptArrayMethod +if exists("did_typescript_hilink") | HiLink typescriptArrayMethod Keyword +endif -- cgit v1.2.3