mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 12:33:51 -05:00
17 lines
786 B
VimL
17 lines
786 B
VimL
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
|
|
|
|
syntax keyword typescriptEncodingGlobal containedin=typescriptIdentifierName TextEncoder
|
|
syntax keyword typescriptEncodingGlobal containedin=typescriptIdentifierName TextDecoder
|
|
if exists("did_typescript_hilink") | HiLink typescriptEncodingGlobal Structure
|
|
endif
|
|
syntax keyword typescriptEncodingProp contained encoding fatal ignoreBOM
|
|
syntax cluster props add=typescriptEncodingProp
|
|
if exists("did_typescript_hilink") | HiLink typescriptEncodingProp Keyword
|
|
endif
|
|
syntax keyword typescriptEncodingMethod contained encode decode nextgroup=typescriptFuncCallArg
|
|
syntax cluster props add=typescriptEncodingMethod
|
|
if exists("did_typescript_hilink") | HiLink typescriptEncodingMethod Keyword
|
|
endif
|
|
|
|
endif
|