syntastic/syntax_checkers/xhtml/w3.vim
Kevin Locke 83a7a2a502 Checker html/w3: Add support for SVG and XHTML
Apply the same changes that were applied to html/validator in
vim-syntastic/syntastic#2241 to w3/html so that it can be used to
validate SVG and XHTML as well.

Add support for `g:syntastic_{type}_w3_doctype` to control the doctype
POST parameter sent to the validator.  This is necessary for SVG without
a DTD (which would otherwise be validated as generic XML) and useful for
all the types to control validation.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-01-30 12:39:40 -07:00

24 lines
938 B
VimL

"============================================================================
"File: w3.vim
"Description: Syntax checking plugin for syntastic
"Maintainer: Kevin Locke <kevin@kevinlocke.name>
"License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists('g:loaded_syntastic_xhtml_w3_checker')
finish
endif
let g:loaded_syntastic_xhtml_w3_checker = 1
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'xhtml',
\ 'name': 'w3',
\ 'redirect': 'html/w3'})
" vim: set sw=4 sts=4 et fdm=marker: