mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-13 22:13:50 -05:00
Switch typescript provider, closes #428
This commit is contained in:
20
syntax/yats/web-crypto.vim
Normal file
20
syntax/yats/web-crypto.vim
Normal file
@@ -0,0 +1,20 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
syntax keyword typescriptCryptoGlobal containedin=typescriptIdentifierName crypto
|
||||
if exists("did_typescript_hilink") | HiLink typescriptCryptoGlobal Structure
|
||||
endif
|
||||
syntax keyword typescriptSubtleCryptoMethod contained encrypt decrypt sign verify nextgroup=typescriptFuncCallArg
|
||||
syntax keyword typescriptSubtleCryptoMethod contained digest nextgroup=typescriptFuncCallArg
|
||||
syntax cluster props add=typescriptSubtleCryptoMethod
|
||||
if exists("did_typescript_hilink") | HiLink typescriptSubtleCryptoMethod Keyword
|
||||
endif
|
||||
syntax keyword typescriptCryptoProp contained subtle
|
||||
syntax cluster props add=typescriptCryptoProp
|
||||
if exists("did_typescript_hilink") | HiLink typescriptCryptoProp Keyword
|
||||
endif
|
||||
syntax keyword typescriptCryptoMethod contained getRandomValues nextgroup=typescriptFuncCallArg
|
||||
syntax cluster props add=typescriptCryptoMethod
|
||||
if exists("did_typescript_hilink") | HiLink typescriptCryptoMethod Keyword
|
||||
endif
|
||||
Reference in New Issue
Block a user