mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-19 08:53:41 -05:00
19 lines
1.5 KiB
VimL
19 lines
1.5 KiB
VimL
if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-string.vim')
|
|
finish
|
|
endif
|
|
|
|
syntax keyword typescriptGlobal containedin=typescriptIdentifierName String nextgroup=typescriptGlobalStringDot,typescriptFuncCallArg
|
|
syntax match typescriptGlobalStringDot /\./ contained nextgroup=typescriptStringStaticMethod,typescriptProp
|
|
syntax keyword typescriptStringStaticMethod contained fromCharCode fromCodePoint raw nextgroup=typescriptFuncCallArg
|
|
hi def link typescriptStringStaticMethod Keyword
|
|
syntax keyword typescriptStringMethod contained anchor charAt charCodeAt codePointAt nextgroup=typescriptFuncCallArg
|
|
syntax keyword typescriptStringMethod contained concat endsWith includes indexOf lastIndexOf nextgroup=typescriptFuncCallArg
|
|
syntax keyword typescriptStringMethod contained link localeCompare match matchAll normalize nextgroup=typescriptFuncCallArg
|
|
syntax keyword typescriptStringMethod contained padStart padEnd repeat replace replaceAll search nextgroup=typescriptFuncCallArg
|
|
syntax keyword typescriptStringMethod contained slice split startsWith substr substring nextgroup=typescriptFuncCallArg
|
|
syntax keyword typescriptStringMethod contained toLocaleLowerCase toLocaleUpperCase nextgroup=typescriptFuncCallArg
|
|
syntax keyword typescriptStringMethod contained toLowerCase toString toUpperCase trim nextgroup=typescriptFuncCallArg
|
|
syntax keyword typescriptStringMethod contained trimEnd trimStart valueOf nextgroup=typescriptFuncCallArg
|
|
syntax cluster props add=typescriptStringMethod
|
|
hi def link typescriptStringMethod Keyword
|