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/dom-node.vim | |
parent | 66b769328c4511b2273f01c70de971c41f6964dd (diff) | |
download | vim-polyglot-4.0.0.tar.gz vim-polyglot-4.0.0.zip |
Switch typescript provider, closes #428v4.0.0
Diffstat (limited to 'syntax/yats/dom-node.vim')
-rw-r--r-- | syntax/yats/dom-node.vim | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/syntax/yats/dom-node.vim b/syntax/yats/dom-node.vim new file mode 100644 index 00000000..b9f615c8 --- /dev/null +++ b/syntax/yats/dom-node.vim @@ -0,0 +1,29 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 + finish +endif + +syntax keyword typescriptDOMNodeProp contained attributes baseURI baseURIObject childNodes +syntax keyword typescriptDOMNodeProp contained firstChild lastChild localName namespaceURI +syntax keyword typescriptDOMNodeProp contained nextSibling nodeName nodePrincipal +syntax keyword typescriptDOMNodeProp contained nodeType nodeValue ownerDocument parentElement +syntax keyword typescriptDOMNodeProp contained parentNode prefix previousSibling textContent +syntax cluster props add=typescriptDOMNodeProp +if exists("did_typescript_hilink") | HiLink typescriptDOMNodeProp Keyword +endif +syntax keyword typescriptDOMNodeMethod contained appendChild cloneNode compareDocumentPosition nextgroup=typescriptFuncCallArg +syntax keyword typescriptDOMNodeMethod contained getUserData hasAttributes hasChildNodes nextgroup=typescriptFuncCallArg +syntax keyword typescriptDOMNodeMethod contained insertBefore isDefaultNamespace isEqualNode nextgroup=typescriptFuncCallArg +syntax keyword typescriptDOMNodeMethod contained isSameNode isSupported lookupNamespaceURI nextgroup=typescriptFuncCallArg +syntax keyword typescriptDOMNodeMethod contained lookupPrefix normalize removeChild nextgroup=typescriptFuncCallArg +syntax keyword typescriptDOMNodeMethod contained replaceChild setUserData nextgroup=typescriptFuncCallArg +syntax match typescriptDOMNodeMethod contained /contains/ +syntax cluster props add=typescriptDOMNodeMethod +if exists("did_typescript_hilink") | HiLink typescriptDOMNodeMethod Keyword +endif +syntax keyword typescriptDOMNodeType contained ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE +syntax keyword typescriptDOMNodeType contained CDATA_SECTION_NODEN_NODE ENTITY_REFERENCE_NODE +syntax keyword typescriptDOMNodeType contained ENTITY_NODE PROCESSING_INSTRUCTION_NODEN_NODE +syntax keyword typescriptDOMNodeType contained COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE +syntax keyword typescriptDOMNodeType contained DOCUMENT_FRAGMENT_NODE NOTATION_NODE +if exists("did_typescript_hilink") | HiLink typescriptDOMNodeType Keyword +endif |