mirror of
https://github.com/amix/vimrc
synced 2025-06-24 07:44:59 +08:00
Updated plugins
This commit is contained in:
@ -22,4 +22,4 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'name': 'jshint',
|
||||
\ 'redirect': 'html/jshint'})
|
||||
|
||||
" vim: set et sts=4 sw=4:
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
||||
|
@ -20,12 +20,14 @@ if exists("g:loaded_syntastic_xhtml_tidy_checker")
|
||||
endif
|
||||
let g:loaded_syntastic_xhtml_tidy_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
if !exists('g:syntastic_xhtml_tidy_ignore_errors')
|
||||
let g:syntastic_xhtml_tidy_ignore_errors = []
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
" Constants {{{1
|
||||
|
||||
" TODO: join this with html.vim DRY's sake?
|
||||
function! s:TidyEncOptByFenc()
|
||||
@ -46,16 +48,9 @@ function! s:TidyEncOptByFenc()
|
||||
return get(TIDY_OPTS, &fileencoding, '-utf8')
|
||||
endfunction
|
||||
|
||||
function! s:IgnoreError(text)
|
||||
for item in g:syntastic_xhtml_tidy_ignore_errors
|
||||
if stridx(a:text, item) != -1
|
||||
return 1
|
||||
endif
|
||||
endfor
|
||||
return 0
|
||||
endfunction
|
||||
" }}}1
|
||||
|
||||
function! SyntaxCheckers_xhtml_tidy_GetLocList() dict
|
||||
function! SyntaxCheckers_xhtml_tidy_GetLocList() dict " {{{1
|
||||
let encopt = s:TidyEncOptByFenc()
|
||||
let makeprg = self.makeprgBuild({ 'args_after': encopt . ' -xml -e' })
|
||||
|
||||
@ -77,7 +72,20 @@ function! SyntaxCheckers_xhtml_tidy_GetLocList() dict
|
||||
endfor
|
||||
|
||||
return loclist
|
||||
endfunction
|
||||
endfunction " }}}1
|
||||
|
||||
" Utilities {{{1
|
||||
|
||||
function! s:IgnoreError(text) " {{{2
|
||||
for item in g:syntastic_xhtml_tidy_ignore_errors
|
||||
if stridx(a:text, item) != -1
|
||||
return 1
|
||||
endif
|
||||
endfor
|
||||
return 0
|
||||
endfunction " }}}2
|
||||
|
||||
" }}}1
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'xhtml',
|
||||
@ -86,4 +94,4 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set et sts=4 sw=4:
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
||||
|
Reference in New Issue
Block a user