mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-15 15:03:50 -05:00
33 lines
2.0 KiB
VimL
33 lines
2.0 KiB
VimL
let files = filter(globpath(&rtp, 'syntax/yats/dom-elem.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
|
|
|
|
syntax keyword typescriptDOMElemAttrs contained accessKey clientHeight clientLeft
|
|
syntax keyword typescriptDOMElemAttrs contained clientTop clientWidth id innerHTML
|
|
syntax keyword typescriptDOMElemAttrs contained length onafterscriptexecute onbeforescriptexecute
|
|
syntax keyword typescriptDOMElemAttrs contained oncopy oncut onpaste onwheel scrollHeight
|
|
syntax keyword typescriptDOMElemAttrs contained scrollLeft scrollTop scrollWidth tagName
|
|
syntax keyword typescriptDOMElemAttrs contained classList className name outerHTML
|
|
syntax keyword typescriptDOMElemAttrs contained style
|
|
if exists("did_typescript_hilink") | HiLink typescriptDOMElemAttrs Keyword
|
|
endif
|
|
syntax keyword typescriptDOMElemFuncs contained getAttributeNS getAttributeNode getAttributeNodeNS
|
|
syntax keyword typescriptDOMElemFuncs contained getBoundingClientRect getClientRects
|
|
syntax keyword typescriptDOMElemFuncs contained getElementsByClassName getElementsByTagName
|
|
syntax keyword typescriptDOMElemFuncs contained getElementsByTagNameNS hasAttribute
|
|
syntax keyword typescriptDOMElemFuncs contained hasAttributeNS insertAdjacentHTML
|
|
syntax keyword typescriptDOMElemFuncs contained matches querySelector querySelectorAll
|
|
syntax keyword typescriptDOMElemFuncs contained removeAttribute removeAttributeNS
|
|
syntax keyword typescriptDOMElemFuncs contained removeAttributeNode requestFullscreen
|
|
syntax keyword typescriptDOMElemFuncs contained requestPointerLock scrollIntoView
|
|
syntax keyword typescriptDOMElemFuncs contained setAttribute setAttributeNS setAttributeNode
|
|
syntax keyword typescriptDOMElemFuncs contained setAttributeNodeNS setCapture supports
|
|
syntax keyword typescriptDOMElemFuncs contained getAttribute
|
|
if exists("did_typescript_hilink") | HiLink typescriptDOMElemFuncs Keyword
|
|
endif
|
|
|
|
endif
|