diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 14:32:07 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 14:32:07 +0200 |
commit | 84ec4eedcdd2892249b5369f91a6dd1d12fef2fc (patch) | |
tree | 6c9806851123656af2b71f6c6f5d89649442909c /syntax/yats/web-blob.vim | |
parent | 66b769328c4511b2273f01c70de971c41f6964dd (diff) | |
download | vim-polyglot-84ec4eedcdd2892249b5369f91a6dd1d12fef2fc.tar.gz vim-polyglot-84ec4eedcdd2892249b5369f91a6dd1d12fef2fc.zip |
Switch typescript provider, closes #428v4.0.0
Diffstat (limited to 'syntax/yats/web-blob.vim')
-rw-r--r-- | syntax/yats/web-blob.vim | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/syntax/yats/web-blob.vim b/syntax/yats/web-blob.vim new file mode 100644 index 00000000..9b920a05 --- /dev/null +++ b/syntax/yats/web-blob.vim @@ -0,0 +1,41 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 + finish +endif + +syntax keyword typescriptGlobal containedin=typescriptIdentifierName Blob BlobBuilder +syntax keyword typescriptGlobal containedin=typescriptIdentifierName File FileReader +syntax keyword typescriptGlobal containedin=typescriptIdentifierName FileReaderSync +syntax keyword typescriptGlobal containedin=typescriptIdentifierName URL nextgroup=typescriptGlobalURLDot,typescriptFuncCallArg +syntax match typescriptGlobalURLDot /\./ contained nextgroup=typescriptURLStaticMethod,typescriptProp +syntax keyword typescriptGlobal containedin=typescriptIdentifierName URLUtils +syntax keyword typescriptFileMethod contained readAsArrayBuffer readAsBinaryString nextgroup=typescriptFuncCallArg +syntax keyword typescriptFileMethod contained readAsDataURL readAsText nextgroup=typescriptFuncCallArg +syntax cluster props add=typescriptFileMethod +if exists("did_typescript_hilink") | HiLink typescriptFileMethod Keyword +endif +syntax keyword typescriptFileReaderProp contained error readyState result +syntax cluster props add=typescriptFileReaderProp +if exists("did_typescript_hilink") | HiLink typescriptFileReaderProp Keyword +endif +syntax keyword typescriptFileReaderMethod contained abort readAsArrayBuffer readAsBinaryString nextgroup=typescriptFuncCallArg +syntax keyword typescriptFileReaderMethod contained readAsDataURL readAsText nextgroup=typescriptFuncCallArg +syntax cluster props add=typescriptFileReaderMethod +if exists("did_typescript_hilink") | HiLink typescriptFileReaderMethod Keyword +endif +syntax keyword typescriptFileListMethod contained item nextgroup=typescriptFuncCallArg +syntax cluster props add=typescriptFileListMethod +if exists("did_typescript_hilink") | HiLink typescriptFileListMethod Keyword +endif +syntax keyword typescriptBlobMethod contained append getBlob getFile nextgroup=typescriptFuncCallArg +syntax cluster props add=typescriptBlobMethod +if exists("did_typescript_hilink") | HiLink typescriptBlobMethod Keyword +endif +syntax keyword typescriptURLUtilsProp contained hash host hostname href origin password +syntax keyword typescriptURLUtilsProp contained pathname port protocol search searchParams +syntax keyword typescriptURLUtilsProp contained username +syntax cluster props add=typescriptURLUtilsProp +if exists("did_typescript_hilink") | HiLink typescriptURLUtilsProp Keyword +endif +syntax keyword typescriptURLStaticMethod contained createObjectURL revokeObjectURL nextgroup=typescriptFuncCallArg +if exists("did_typescript_hilink") | HiLink typescriptURLStaticMethod Keyword +endif |