mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 13:33:49 -05:00
19 lines
825 B
VimL
19 lines
825 B
VimL
let files = filter(globpath(&rtp, 'syntax/yats/dom-form.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 typescriptDOMFormProp contained acceptCharset action elements encoding
|
|
syntax keyword typescriptDOMFormProp contained enctype length method name target
|
|
syntax cluster props add=typescriptDOMFormProp
|
|
if exists("did_typescript_hilink") | HiLink typescriptDOMFormProp Keyword
|
|
endif
|
|
syntax keyword typescriptDOMFormMethod contained reportValidity reset submit nextgroup=typescriptFuncCallArg
|
|
syntax cluster props add=typescriptDOMFormMethod
|
|
if exists("did_typescript_hilink") | HiLink typescriptDOMFormMethod Keyword
|
|
endif
|
|
|
|
endif
|